Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connects to more than one server !!!!

 
Lin Shen
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I don't know if it can. I have used the policy file in my experiments.
 
matt eggbeers
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am almost positive that you can only connect to the server that the applet was served from.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic