This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet with RMI ,how to place into Tomcat?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since I have files:
hello.html

hello.java


HelloImpl.java


HelloApplet.java


policy


Then I got the all classes I need, but I don't know where to place them?
I make directory in Tomcat webapps/rmi,and place with :
hello.html
examples
policy
then I don't know how publish the Applet with RMI
I just can see the Applet without RMI.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by "publish the applet with RMI". An applet can't be accessed via RMI - it can access something else via RMI. I'm not familiar enough with RMI to say from your code whether what you're trying to do is feasible, but I don't think an applet can be an RMI server - only an RMI client.

And speaking about applets in general, the policy file needs to be added on the client side, i.e. on the machine where the browser running the applet is located.
 
xie yufei
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer, thanks you for your reply.
I sorry for my poor expression in English which is not clear.
I just write a simple RMI pragram whose client was an applet.
While I got the applet from my Tomcat though the browser, the RMI did'work, and I need some help how to realize it, what should I do
in both server and client.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have an RMI registry running on the server?

The RMI chapter may help you get started.
 
    Bookmark Topic Watch Topic
  • New Topic