Sharing RMI port for my server

Hi,

My application uses RMI for communication with other Java programs and TCP sockets for non-java programs. As I want to limit the number of listening ports open in my server (firewall constraints), is it possible to share a single port for both RMI and my own TCP server?

Basically, I want to have the control of listening to a port and delegate the requests to rmiregistry/unicastremoteobject or my TCP server depending on the request.

Regards,

Anand

[485 byte] By [anand_dsa] at [2007-10-3 4:40:20]
# 1
No. You can share ports between 2 or more RMI servers, including the Registry, but that's it.
ejpa at 2007-7-14 22:44:17 > top of Java-index,Core,Core APIs...