I use Tomcat 100% of the time, so, no, I don't have code to initialize
the data-source. Sorry :-(
A ContextListener would also be another approach I forgot to mention.
That's a servlet spec 2.3 thing - and would be even further independent
of the particular app. Once written, you could drop
[EMAIL PROTECTED] wrote:
>If I'm getting this right, I could for instance configure tomcat
>(server.xml) to use this, and it will then be available in my webapp?
>
Yes. See the HOWTOs on the site.
>Is there a way to configure in the web app itself? (web.xml or
>something?)
>
see the site docs I
Yep, this is container dependant. Moving to OT thread...
Dave
>From: Eddie Bush <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: How to use datasource and db
e the pool in the
context. But with JNDI this should be easier.
Stef.
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 15. Oktober 2002 17:29
To: Struts Users Mailing List
Subject: Re: How to use datasource and db connection pooling in struts?
For that one you
For that one you need to play RTFM with your server docs. It should be
possible, but the way you do it would be container-dependant. Tomcat
will place a reference into JNDI for you - I assume (dangerous as it is)
other will too. If you are using a different server than Tomcat, and it
doesn'
Dave
>From: <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: How to use datasource and db connection pooling in struts?
>Date: Tue, 15 Oct 2002 16:40:27 +0200
>
>Hi, there!
>
>H
You can specify this in your struts-config.xml file for each webapp.
Dave
>From: <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: RE: How to use datasource and db connection pooling in
EMAIL PROTECTED]]
Sent: Dienstag, 15. Oktober 2002 16:42
To: 'Struts Users Mailing List'
Subject: RE: How to use datasource and db connection pooling in struts?
you can use commons-dbcp ... see
http://jakarta.apache.org/commons/dbcp.html
---
- Nayan Hajratwala
- Chikli Consulting LLC
- http:/
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: How to use datasource and db connection pooling in struts?
>Date: Tue, 15 Oct 2002 16:40:27 +0200
>
>Hi, there!
>
>How can I easily achieve database connection pooli
jratwala, Nayan (N.)" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: How to use datasource and db connection pooling in struts?
>
]
Subject: How to use datasource and db connection pooling in struts?
Hi, there!
How can I easily achieve database connection pooling (using a datasource
in one of the xml config files - btw. which one is it?)?
I know there is some stuff in jakarta-commons.
What I want to achieve is an easy to
Hi, there!
How can I easily achieve database connection pooling (using a datasource
in one of the xml config files - btw. which one is it?)?
I know there is some stuff in jakarta-commons.
What I want to achieve is an easy to configure and highly efficient db
connection pool that is available to
12 matches
Mail list logo