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:38:06 -0500

Salut,

Byron Nevins wrote:
> netstat /a /n /b
> ----------------------------
> Active Connections
>
> Proto Local Address Foreign Address State PID
>
> TCP 0.0.0.0:4848 0.0.0.0:0 LISTENING 1800
> [java.exe]
>
> TCP 0.0.0.0:4848 0.0.0.0:0 LISTENING 4416
> [java.exe]
>
> TCP 0.0.0.0:4848 0.0.0.0:0 LISTENING 4212
> [java.exe]
>
> UDP 0.0.0.0:4848 *:* 1800
> [java.exe]
>
> UDP 0.0.0.0:4848 *:* 4212
> [java.exe]
>
> UDP 0.0.0.0:4848 *:* 4416
> [java.exe]
>

This is expected for UDP, but for TCP, I would like to get more
information :-) All 3 instances start properly, right? What do you get
when you query the 8080?

Thanks

-- Jeanfrancois


>
>
> 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
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>