Very good question in RMI..reply soon
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nick_paule
Posted On:   Tuesday, April 16, 2002 07:58 PM



In an RMI client communicating with a RMI server using a predefined port. The RMI server would make a thread and change the port connection to allow other connections to come through. I want to know which port number or function could be use to determine which port the client was communicating with at different stages that the client sends the message to the server and the server returning the message ?



Waiting for a quick response and thank you in advance.


Nick

Re: Very good question in RMI..reply soon

Posted By:   Anonymous  
Posted On:   Thursday, May 16, 2002 03:04 AM

You should read the book "A Beginners Guide To RMI" which is available at http://www.universalteacher.com

Re: Very good question in RMI..reply soon

Posted By:   Anonymous  
Posted On:   Tuesday, April 16, 2002 08:30 PM

hi,

It is possible to set the Port number for the server to communicate back to the client. The client communicates
with the server on the Port defined in the RMI URL. But when the server connects back
It may not be from the same port, but we can make it to communicate through the same port
or any other user defined ports.

The UnicastRemoteObject 's constructor takes in an argument as port. Just by invoking
super(portnumber) will make the server to contact back in the same port.
Hence the communication will take place between the client to server
through the port set in RMI URL & from Server to client by the port set in the ur RMI Server.

Regds
Joseph
CrimsonLogic
About | Sitemap | Contact