Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does a custom RMISocketFactory influence Naming.lookup

846339Mar 10 2011 — edited Jun 6 2011
i have a requirement to fix the server and client ports being used by our RMI app.
i understand that fixing the client port is a bad option as it would obviously cause performance issues.

So i am working on fixing the ports being used on the server side.
Till now i have created a custom RMI SocketFactory that uses a 10 port range(7000-7010) for working.
Now when i use the application i do see the range being used over the network.
However , apart from the ports defined in the CustomRMISocketFactory there are other ports that i still see in the network traces.

From the debug that i have done i see that these ports are being generated right after the Naming.lookup(<String>) call.
It is apparent that there would be one port used on the server side where the registy is running.(port 9011)
But i cannot understand what is causing the other ports being used.(These ports are randomly selected and keep changing).

Please do let me know if anyone can guide me in the correct path.
This post has been answered by EJP on Mar 10 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2011
Added on Mar 10 2011
12 comments
5,203 views