This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Distributed Java and the fly likes RMI call back object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI call back object" Watch "RMI call back object" New topic
Author

RMI call back object

rajshkhr pandey
Ranch Hand

Joined: Oct 14, 2009
Posts: 35
Hello to all,

I have a problem while registering the call back object.
I am developing an application in which I use RMI to connect the client with server while client logs in. When client logs in, it registers a call back object to it so that server can communicate with client.
At localhost it works fine and server replies to the client but when I make this application live the object doesnot work.
I use following statement on server while registering the object,

it gives following output

On localhost my IP address is 192.168.1.2 so it might work fine but when working in live condition my IP address should change so that server can call back me.
I have generated stub file of both server and client files.
What I do to get out this?
Thanks in advance
rajshkhr pandey
Ranch Hand

Joined: Oct 14, 2009
Posts: 35
The problem was solved by setting java.rmi.sever.hostname property to the client side and the object is now registering to the server with the true IP address and also giving the response to the client.
But the problem of firewall arises that firewall is not allowing to communicate server to the client while call back. It shows error of "No Route found to the host".

Please help me to eliminate the firewall issue.
Thanks in advance.
 
jQuery in Action, 2nd edition
 
subject: RMI call back object