File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI using servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI using servlet" Watch "RMI using servlet" New topic

RMI using servlet

ajithsasi kumar

Joined: Apr 06, 2008
Posts: 21
How to implement Remote Method Invocation Using servlet. Sir, please give me an example
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

RMI is not simple enough for someone just to paste an example in here.
Before worrying about doing this from a servlet, you get a basic understanding of RMI and get it working in a plain old Java class.

Once you can do that, it should be fairly simple to invoke that class and call its methods from a servlet.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ajay Saxena
Ranch Hand

Joined: Nov 13, 2006
Posts: 154
Also, you should explain your requirements clearly. Are you trying to simulate RMI functionality using servlets or just trying to call an RMI server from within a servlet?
I agree. Here's the link:
subject: RMI using servlet
It's not a secret anymore!