• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Over the Internet  RSS feed

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We have designed one product to be used over the intranet and we are using RMI in that now we want to go to the Internet with the same product after making some needful changes...
So as far as the RMI goes...what kind of changes do I need to make ?? How would I connect to the RMI Host from the internet....??

thanks
Pratik Khetia
 
Abdul Salam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the considerations when you move your RMI application to internet is the presence of "firewall" between the client and server.
This could lead to one or more of the following cases to be considered.
[list ]
  • Method invocations will be slower,because RMI uses http to communicate through firewall proxy.
  • the client cannot export it's own remote object

  • outside a firewall.So server cannot invoke Remote methods on the client.
  • Consider whether the server will support RMI clients behind firewalls that can forward to arbitrary ports,If not take the appropriate steps.
  • It is always better to specify the 'java.rmi.server.hostname' property explicitly as it's not guarateed to be detected by the JVM under all circumstances.
  • [/list]
    Hope this helps
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!