wood burning stoves 2.0*
The moose likes Applets and the fly likes Connects to more than one server !!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Connects to more than one server !!!!" Watch "Connects to more than one server !!!!" New topic
Author

Connects to more than one server !!!!

Lin Shen
Ranch Hand

Joined: Oct 08, 2003
Posts: 57
In my project, I am developing a CORBA based applet client. I have allowed my applet to have read and write access to the client. I also need to allow the client to connect two more than one servers.

But it seems my client can only connect to the server if this is the same server where my client downloaded the applet from. Sandbox again......

I wonder how can I allow an applet to connect to more than one servers?

Thanks a lot.
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Look into how to give the applet Permission. There are a couple of ways:
Sign the applet.
Change the java.policy file on the client machine. Not practical with several clients.
Lin Shen
Ranch Hand

Joined: Oct 08, 2003
Posts: 57
I have signed the applet. And I can already read and write the client side without changing the .java.policy file.

The client can also connect to the server which it downloaded the applet from.

So, no problem with signed applet or communication between applet client and the server. The only problem I can think is that clients are not allowed to connect to more than one server even if the signed applet is used. :-(

Are you sure clients can connect to more than one server by using signed applet?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
No, I don't know if it can. I have used the policy file in my experiments.
matt eggbeers
Greenhorn

Joined: Mar 11, 2005
Posts: 14
I am almost positive that you can only connect to the server that the applet was served from.
 
wood burning stoves
 
subject: Connects to more than one server !!!!
 
Similar Threads
unallocated ports on the server
Regarding SSL certificate
Sending data to an applet.
How to loading policy file with signed Applet
CORBA & Firewalls