Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request from Applet to other server in same domain?  RSS feed

 
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
Bartender
Posts: 18720
72
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!