aspose file tools*
The moose likes Applets and the fly likes How to retrive data in Applet from a webserver ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to retrive data in Applet from a webserver !" Watch "How to retrive data in Applet from a webserver !" New topic
Author

How to retrive data in Applet from a webserver !

Keyur Shah
Greenhorn

Joined: May 31, 2000
Posts: 15
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
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20695
    ∞

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


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
wood burning stoves
 
subject: How to retrive data in Applet from a webserver !