user161004
user161004

Reputation: 985

Connect database from applet

Is it possible to connect database from applet???

Upvotes: 0

Views: 266

Answers (1)

duffymo
duffymo

Reputation: 308753

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.

Upvotes: 5

Related Questions