• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

communication between servlet and untrusted applet

Hi Guys,

   How servlet communicates with an untrusted applet??

thanks.
stephen
0
zollen
Asked:
zollen
  • 2
1 Solution
 
Igor BazarnyCommented:
Hi,

Same way as untrusted applet communicates with server it was loaded from. Servlets are typically visible as http resources to outside world, so there is not much difference between servlet and static html page in the security sence. Applet can form a request and send it to the servlet, then process servlet's responce. If servlet client is known to be applet, you can use serialization as communication protocol.

If you want servlet to be active, security permissions don't allow untrusted applet to create server socket, but applet could poll servlet state and handle requests when needed.

Regards,
Igor Bazarny,
Brainbench MVP for Java 1
www.brainbench.com


 
0
 
Igor BazarnyCommented:
Any comment about 'C' grade? Any other question left?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now