This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Connects to more than one server !!!!

 
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.
 
Master Rancher
Posts: 3850
35
  • 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
Master Rancher
Posts: 3850
35
  • 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.
 
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.
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic