This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI call back object

 
rajshkhr pandey
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic