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 ?? Thanks KC [This message has been edited by Kiran C (edited May 03, 2001).]
Joined: May 03, 2001
Kiran , Do you want to implement an RMI server(UnicastRemoteObject) as a Servlet !!! or 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. myremoteobject=(myRemoteInterface)Naming.lookup("rmiurl"); myremoteobject.myRemoteMethod();
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
Joined: May 03, 2001
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).]
Joined: Jan 07, 1999
"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 http://www.javaranch.com/name.jsp . 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. Thanks.