• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connects to more than one server !!!!

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I don't know if it can. I have used the policy file in my experiments.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am almost positive that you can only connect to the server that the applet was served from.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic