• 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

Applets and sockets

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Ive been the forum for a solution to this problem but couldnt find one, I hope you can help.

I am trying to run a socket client within an applet. I got the applet connecting to the serversocket when the serversocket is run on the same machine as the applet. I read that to connect remotely to the applet and have the serversockets work the applet has to be run on the same machine as the socket is hosted from and that all applet clients will have to download the .policy file.

Is there any way around this? Basically I would like to host the applet from a seperate webserver and have it connect to the serversocket on a different machine and still allow people to run the applet remotely.

If I sign the applet will this allow me to achieve this?

Thanks for the help in advance
Dan
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In theory you can use a signed applet for that.
In practice this is almost always more trouble than it's worth and the requirements are better served by not using an applet at all but a full blown application distributed through JavaWebStart (for example).
 
Dan Lynch
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the suggestion,

I have never used Java Web Start. I gather that every client would need to access the application through Java Web Start, and thus need it on their machine?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java WebStart is installed with the JRE so you don't need to specifically install is.
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic