Title: RE: Connection pass from servlet to servlet

The best way of doing this is to use a connection pool. In this way you can create a pool of connections when your server starts, get connections from this pool when you need and return this to the pool when you are finished. Another way to use your connection across your application is to put your connection to the Application or Session objects provided by your web server. Java Servlet API has methods that you can use to access session objects.

Related links:
http://www.es-strangnas.se/iasdocs/aspdocs/ref/comp/compref_13.htm
http://www.javaexchange.com/api/com.javaexchange.dbConnectionBroker.DbConnectionBroker.html



Reply via email to