You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Piero Giordani <ta...@pierogiordani.it> on 2004/10/12 19:22:05 UTC

Tapestry startup

In a web application I'm developing, I'd want use a connection pool class to
connect to the DB server. The matter is where (or when?) create the pool!
I think to create it at the application startup (in an equivalent place of
the init servlet for jsp), but I don't find this 'place' in Tapestry. Is it
in the ApplicationServlet? Is there another way to use the DB connection
pooling?

Piero


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry startup

Posted by James Sherwood <js...@romulin.com>.
We init our db connections in the servlet for the application

James


----- Original Message ----- 
From: "Piero Giordani" <ta...@pierogiordani.it>
To: "Tapestry User" <ta...@jakarta.apache.org>
Sent: Tuesday, October 12, 2004 2:22 PM
Subject: Tapestry startup


> In a web application I'm developing, I'd want use a connection pool class
to
> connect to the DB server. The matter is where (or when?) create the pool!
> I think to create it at the application startup (in an equivalent place of
> the init servlet for jsp), but I don't find this 'place' in Tapestry. Is
it
> in the ApplicationServlet? Is there another way to use the DB connection
> pooling?
>
> Piero
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry startup

Posted by Eric Schneider <er...@centralparksoftware.com>.
Piero,

Extend AppicationServlet and your own init() method.   Tho, I'd suggest 
pushing connection pool config stuff into a JNDI datasource on your 
container.

cheers,
e.

On Oct 12, 2004, at 1:22 PM, Piero Giordani wrote:

> In a web application I'm developing, I'd want use a connection pool 
> class to
> connect to the DB server. The matter is where (or when?) create the 
> pool!
> I think to create it at the application startup (in an equivalent 
> place of
> the init servlet for jsp), but I don't find this 'place' in Tapestry. 
> Is it
> in the ApplicationServlet? Is there another way to use the DB 
> connection
> pooling?
>
> Piero
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org