Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrive data in Applet from a webserver !

 
Keyur Shah
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
 
paul wheaton
Trailboss
Pie
Posts: 21664
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic