dev@glassfish.java.net

Re: Multiple instances of the same domain

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 04 Mar 2008 15:33:06 -0500

Hi,

Byron Nevins wrote:
> I definitely do not. And the String does not appear anywhere in v3
> (.java) files...

I think Binod means in Grizzly, not in your code ;-). And he might be
right with his analysis. We turned on the SO_REUSEADDR in Grizzly
recently, and what you see is probably right, although I can reproduce
it on my winXP...

What kind of behavior do you get when you invoke port 8080?

Thanks

-- Jeanfrancois

>
>
> Binod wrote:
>> Hope you dont have SO_REUSEADDR set to true. In windows, that would
>> allow you to bind
>> socket to same port.
>>
>> - Binod.
>>
>> On 04-Mar-08, at 9:21 PM, Jeanfrancois Arcand wrote:
>>
>>> Byron,
>>>
>>> This is impossible for TCP or you have found major flaw inside the
>>> JDK ;-) But remember we are also supporting UDP now, so if you do a
>>> netstat -an, you will see that all UDP listeners *can* bind to the
>>> same port. Can you double check?
>>>
>>> Thanks
>>>
>>> -- Jeanfrancois
>>>
>>> Byron Nevins wrote:
>>>> Yes -- this is on Windows XP...
>>>> Jerome Dochez wrote:
>>>>> I am still getting a port conflict :
>>>>>
>>>>> SEVERE: doSelect exception
>>>>> java.net.BindException: Address already in use:
>>>>> 8181=com.sun.grizzly.http.SelectorThreadHandler_at_2e6a28
>>>>> at
>>>>> com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
>>>>> at com.sun.grizzly.Controller.doSelect(Controller.java:317)
>>>>> at
>>>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>> Mar 3, 2008 9:36:56 PM com.sun.grizzly.Controller doSelect
>>>>> SEVERE: doSelect exception
>>>>> java.net.BindException: Address already in use:
>>>>> 4848=com.sun.grizzly.http.SelectorThreadHandler_at_5be21d
>>>>> at
>>>>> com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
>>>>> at com.sun.grizzly.Controller.doSelect(Controller.java:317)
>>>>> at
>>>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>> Mar 3, 2008 9:36:56 PM com.sun.grizzly.Controller doSelect
>>>>> SEVERE: doSelect exception
>>>>> java.net.BindException: Address already in use:
>>>>> 8080=com.sun.grizzly.http.SelectorThreadHandler_at_297ba3
>>>>> at
>>>>> com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
>>>>> at com.sun.grizzly.Controller.doSelect(Controller.java:317)
>>>>> at
>>>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>> Mar 3, 2008 9:36:56 PM
>>>>> com.sun.grizzly.standalone.StaticResourcesAdapter <init>
>>>>>
>>>>>
>>>>> is this on windows ?
>>>>>
>>>>> jerome
>>>>>
>>>>> On Mar 3, 2008, at 3:56 PM, Byron Nevins wrote:
>>>>>
>>>>>> 1) bring up 3 console windows
>>>>>> 2) In each window start the default domain (e.g. asadmin start-domain)
>>>>>>
>>>>>> All 3 copies of the same domain successfully start.
>>>>>> netstat reveals that all 3 are listening on the same ports.
>>>>>>
>>>>>> I believe this would be impossible in V2 because of port conflicts.
>>>>>> Is this a new grizzly feature?
>>>>>>
>>>>>> --
>>>>>> Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell
>>>>>> 650-784-4123 - Sun Microsystems, Inc.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>> <mailto:dev-help_at_glassfish.dev.java.net>
>>>
>>
>
> --
> Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: dev-help_at_glassfish.dev.java.net