I'm not really sure if I'm answering your question, but.. you shouldn't need
to configure any of Tomcat's JDBC features if you're using a Torque backend.
Torque will automatically create a singleton pool that all the Torque
classes share (this is configurable in the Torque.properties file)

If you want to share a connection in a session, you'd probably have to get
an instance of Torque's database connection when the session is created, and
then pass it to every update method in your Torque classes.  Since you're
already provided with a pool, though, this would probably be an unneeded
step.

-Roy

----- Original Message -----
From: "Centaur zeus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 01, 2002 2:30 AM
Subject: tomcat with torque


> Hi all,
>
>   I wanna try torque with my tomcat. I notice that torque use db adapters
as
> the connection pool and management. However, can I configure tomcat such
> that the adapter can be shared among all users ? or shared among user with
> in the session ?
>
>   Since I think if I don't configure it, the adapter will just try to
> connect to the db every time the user issue a query which is not
desirable.
> Thanks.
>
> Perseus
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to