• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How to retrive data in Applet from a webserver !

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends !
I am trying to retrive data in Applet from a webserver using RMI. The webserver itself has got database. It works well with appletviewer.. but doesn't work with anyof the browser.
What should I write in an applet to inform that I am connecting (creating socket) to a webserver from where it has come from !!! The applet has sandbox restriction.. and it can connect (create a socket) to a webserver form where its loaded !
Can anyone please justify - how to do this !?
Thanks.
- Keyur
 
Trailboss
Posts: 23451
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your applet is to be used over the internet, you may want to do a bit of a redesign.
First, IE does not support RMI.
Second, RMI uses a port that is blocked by most corporate firewalls. You can set RMI to do tunneling, but I have not tried it.
I made my own applet to servlet communication stuff. If you are interested, I've posted it here at the ranch. See www.javaranch.com/common.html
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic