-
1. Re: how to avoid JNDI port conflicts at startup?
adrian.brock Apr 7, 2004 5:27 AM (in response to davekohr)Most likely it is Instant Messaging running on port 1099
Regards,
Adrian -
2. Re: how to avoid JNDI port conflicts at startup?
davekohr Apr 7, 2004 2:12 PM (in response to davekohr)Actually, most of the time it seems the process using port 1099 has something to do with CIFS (Windows network filesystem) access to mapped network drives. But thanks for the suggestion.
This problem must come up often on Win2K systems. Is there a recommended solution? -
3. Re: how to avoid JNDI port conflicts at startup?
mgingell Apr 8, 2004 1:35 PM (in response to davekohr)FYI, Any application that uses RMI will likely use port 1099 (and 1098) as these are the "well known" ports for the rmiregistry and rmi activation. I would really like to know what the recommended solution is too! I have some applications that use JINI (with RMI) and I can't start the RMIregistry on the default port if Jboss is running, and I can't start JNDI (Jboss) on default port if the rmiregistry is running...
-
4. Re: how to avoid JNDI port conflicts at startup?
juha Apr 19, 2004 8:20 AM (in response to davekohr)So just change the port of your naming service... ?
-
5. Re: how to avoid JNDI port conflicts at startup?
davekohr May 30, 2004 1:28 AM (in response to davekohr)Yes, we definitely need to change the port number.
The question is, is there a way to pick a fixed port number that will basically never have conflicts.
I'm running on a Windows 2000 system. We had been using port 1099 for JNDI, but it seems that sometimes, some other process has grabbed that port. As I understand it, a port numbered over 1023 can be grabbed by basically any process. And such ports are typically chosen dynamically to create socket connections for other protocols like HTTP.
1099 is pretty close to 1023, and I believe these dynamically-assigned ports are generally chosen in increasing numerical order. So if I pick a much higher port number, like 11099, it's very unlikely to be used either for a dynamically-assigned port, or as the "well known port" for some other protocol. Just as 8080 works well as an alternate port for HTTP.
So is this solution the standard one? Is it reliable? Is there a better way?
Thanks in advance. -
7. Re: how to avoid JNDI port conflicts at startup?
hbaxmann May 30, 2004 5:39 AM (in response to davekohr)If you want to have a full automatic port allocation and discovery process, than use and extend the ServiceBindingManager for dynamic port allocation and publish the StoreURL over a standardized port like LDAP or HTTP for the clients.
But I am in doubt, if this efforts are good for hiding organizational flaws.
bax