File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes RMI on a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "RMI on a Servlet" Watch "RMI on a Servlet" New topic

RMI on a Servlet

Kiran C

Joined: May 03, 2001
Posts: 3
I have written a few RMI samples...all as a stand alone applet or applications. Now I want to write a new one or change the ones that I have to use it on a Servlet (Tomcat)...How do I do it..
What files go in what directory (examples/jsp/???) etc...I have been trying a few combos but no luck...Does anyone have a step by step instructions to create a RMI Servlet application ??
[This message has been edited by Kiran C (edited May 03, 2001).]
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
Kiran ,
Do you want to implement an RMI server(UnicastRemoteObject) as a Servlet !!!
Want to make a Servlet as your RMI client ?
If the second one is your need it is very very simple.Just implement your RMI client in any of the Servlet method.(init or Service methods) provided you have proper permission to access the ports at which your RMIRegistry listens.

I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Kiran C

Joined: May 03, 2001
Posts: 3
I want to to open a HTML page as http://localhost:8080/examples/blah../blah../test.html
and that test.html calls a JSP and that JSP talk to a Java class and gets some results back to JSP and to HTML page....I am implementing a PUSH model than a PULL model....meaning everytime something changes in the Backend the Java class will push the results to the HTML....I have it implemented using a pushlet on the web, and I have RMI working on an java application.....My problem is, how do I take my RMI classes etc..and bind it with the JSP/Servlet engine..
I hope my question is clear...
[This message has been edited by Kiran C (edited May 03, 2001).]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
"Kiran C",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: RMI on a Servlet
It's not a secret anymore!