Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoke method on remote machine  RSS feed

 
Hardik Raja
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Javaranchers,

I have a Servlet running on a server from which, I need to invoke a static method of a Desktop JAVA application running on a remote machine. Althought, I know some bit about RMI, I am not quite clear on which technology to use to accomplish this.

Could someone please suggest some ideas on how to proceed with this ?
Many thanks in advance for you valuable input.

Kind regards,
Hardik Raja
SCJP 5.0
 
Ajay Saxena
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The path you choose would depend on the type of interfaces the standalone Java application supports.

If it exposes its methods as RMI services, you just need to call them from your servlet using the RMI infrastructure of your web server.

Another approach possible is the web services route provided the remote Java app exposes the methods as web services.You would then have to use a SOAP engine plugin on the web server and invoke the service from the servlet.
[ September 04, 2008: Message edited by: Ajay Saxena ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!