1.

How Can I Connect From An Applet To A Database On The Server?

Answer»

There are two ways of connecting to a database on the server side.

  1. The hard way. Untrusted applets cannot touch the hard disk of a computer. Thus, your applet cannot use NATIVE or other local files (such as JDBC database drivers) on your hard drive. The first alternative solution is to create a digitally signed applet which may use LOCALLY installed JDBC drivers, able to connect directly to the database on the server side.
  2. The easy way. Untrusted applets may only open a network connection to the server from which they were downloaded. Thus, you must place a database listener (either the database itself, or a middleware server) on the server NODE from which the applet was downloaded. The applet would open a socket connection to the middleware server, located on the same computer node as the webserver from which the applet was downloaded. The middleware server is used as a mediator, connecting to and EXTRACT data from the database.

There are two ways of connecting to a database on the server side.



Discussion

No Comment Found