users@glassfish.java.net

Re: Glassfish random ports

From: <glassfish_at_javadesktop.org>
Date: Thu, 16 Aug 2007 06:13:22 PDT

First of all, thanks for the help...

Well, all ports are configured in domain.xml:
- HTTP
- HTTPS
- ADMIN
- IIOP
- IIOP-SSL
- IIOP-MUTUALAUTH
- JMS
- JMX

But every time i start the domain (either version 1 or 2, or using JSE 5 or 6), two randomly chosen ports are listening...in linux it can be partically any port (from the 30,000s to the 50,000s), but in windows is usally arround the 2,000s. First port accepts connection from all hosts, and the second only from localhost.

I checked the domain's configuration (from the admin console) for any new listener or service...but all i found was the defaults (the list on the top)...and when the domain is started, they in fact listens as configured.

I try debugging, to find out who launches the listener, but i'll figured out is the it looks like is a RMI service using ASServerSocket class listening in a ASServerSocketChannel object. I can't seem discover what services launches that thread...

Do you have any ideas how can I test or debug to find who launches this? Or at least where can i configure this random port range?

Thanks.

Alvaro
[Message sent by forum member 'apunto' (apunto)]

http://forums.java.net/jive/thread.jspa?messageID=231129