-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eddie,

On 3/27/2009 11:23 AM, Eddie Yee wrote:
> I currently use deployment descriptor xml files to describe both the
> war file to deployed and the session persistence info (configs+db
> info).  Currently we use a connectionURL that specifies db complete
> db info (user/pass/db/port/sid)--  I would like to know if I can
> specify a datasource specified in the server.xml instead, and how to
> specify it (if you could provide an example, that'd be great).

Unfortunately, JDBCStore does not support the use of DataSources. I
would have recommended that you just subclass JDBCStore and override the
'open' method, but it looks like that class (like it's brother
JDBCRealm) caches PreparedStatement objects so you might have do to a
bunch of work to subclass... perhaps just copying that class and doing a
hack-job on it would work.

If you were to write something like this, consider contributing it back
to the community... I'm sure some people out there would like to use a
JDBCDataSourceStore instead of the JDBCStore.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknM9QMACgkQ9CaO5/Lv0PC2jACghE0mGGOl1FgE8ZVqvVzfNLn3
QUwAoIhdx6JPOxRSf+7Zd8XOCI8JDbV7
=sduq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to