• 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

problem with rmi based program

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have made an rmi based program.when i run it with appletviewer it runs perfectly but on the browser it give rmi.naming class not found.i have even lowered the decurity to the lowest but it doesnt work.any ideas?
thanx beforehand.
-manjeet
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah..it sounds like having security problems. Try to put class files in Jdk/jre/lib/security folder which has default permission granted in "java.policy" file.
Hope that helps.
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have explored this issue quite a bit several months back and have determined that there is no effective way to create a cross browser rmi application. For instance, you could use signed applets and then set the client jvm permissions to allow the rmi connections but then you end up using the microsoft implementation of the jvm. the last time I checked, Explorer does not support rmi. So, you could use the Object <EMBED> tags to force the browser to use Sun's appletviewer. This work fairly well, since is runs outside the browser and, therefore, is not as restricted as a jvm running from within. Again, the issue here is that Apple has not ported a version of the applet viewer (even though they announced support '98 - maybe os X). Another option is to create a desktop application that clients can download - this relieves you of a lot of the security issues but reduces the effectiveness of the application since it has to be trusted and downloaded. Ultimately, I skirted the rmi approach altogether and wrote my application using sockets. If you only want to support a single browser/platform, then you do have options, however. If anyone has another solution, it would be great to here it.
Sean
 
Honk if you love justice! And honk twice for tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic