Connect database from applet
Is it po开发者_运维问答ssible to connect database from applet???
The sandbox requires that an applet connect back to the server and port it came from. If your database connection port is different from the servlet engine, it's not possible.
Best to put a servlet in between the applet and database. That way your database isn't exposed directly on the network. It gives the servlet a change to check authorization, bind variables, etc.
精彩评论