If you are just trying to initialize a connection pool try using my wrapper for the
bitmechanic pool
(http://www.knightsofthenet.com/projects/SQLPool/)
Your JVM will initialize it if you specify the class name in the jdbc.drivers system
property
and then the only code you need to add to your app would be something like:
Connection conn = DriverManager.getConnection(ConnectionPoolManager.URL_PREFIX +
"myalias", null, null);
> > Browsing through documents, it seems like the only way to
> create some
> > initial objects (such as a JDBC connection pool) in the
> ServetContext
> > is to create a Servlet with load-on-startup, which then in
> its init()
> > method can do some initialization.