• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI on a Servlet

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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();
 
Kiran C
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic