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

Request from Applet to other server in same domain?

 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Here is the case. I have server A host an applet, called applet A. When client browser applet A, can i have applet A sends request to server B(other server) on the same domain and let server B does the processing? Thanks.
 
Tim Holloway
Saloon Keeper
Posts: 18366
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, Java trusts at the server level, not the domain level. So you'd either have to sign the applet or have the webserver proxy the applet's request.
Although proxying might seem extra overhead, that's the solution I recommend. That way you don't have to remember which server provides data for different parts of the web app. Also, a signed app is a greater security risk, since you might accidently enable stuff that was better left forbidden.
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
When you say proxying, do you mean writing a server program and put it on the same machine as the applet and this server's only job is directing requests from applets to different servers and collecting response from different servers to return to applets. Am i right? Is there other approach of proxying?
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic