vid Graham [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 03, 2002 6:35 AM
>To: [EMAIL PROTECTED]
>Subject: RE: Database Connection in Logic Beans - pooling?
>
>
>Do NOT save the request into the session. That's why there is a connection
>pool (DataSource), you take
2002 6:35 AM
To: [EMAIL PROTECTED]
Subject: RE: Database Connection in Logic Beans - pooling?
Do NOT save the request into the session. That's why there is a connection
pool (DataSource), you take one out, use it, and put it back. If you don't
return it you will ruin the whole poi
l be appreciated.
>Frederic
>
>I've excluded EJB for my project because most of the data is read only or
>linked to one user only.
>
>-Original Message-
>From: Troy Hart [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 02, 2002 9:17 PM
>To: Struts Users
#x27;ve excluded EJB for my project because most of the data is read only or
> linked to one user only.
>
> -Original Message-----
> From: Troy Hart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 02, 2002 9:17 PM
> To: Struts Users Mailing List
> Subject: RE: Datab
List
Subject: RE: Database Connection in Logic Beans - pooling?
You can solve this problem by providing a business service framework for
your application (There has been a lot of talk about this sort of thing
on this list...I can't think of a particular thread to reference for you
so you may ju
ulary I used is database oriented and not 100 %
> java/struts compatible.
>
> Your help will be appreciated.
> Frederic
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 02, 2002 9:06 AM
> To: Struts Users
02, 2002 9:06 AM
To: Struts Users Mailing List
Subject: Re: Database Connection in Logic Beans - pooling?
Steve McLeod writes:
> I am using:
> Tomcat 4.0
> Struts 1.0.2
>
> The problem
>
>
> I have successfully used the Struts database connection pooling in a tri
Steve McLeod writes:
> I am using:
> Tomcat 4.0
> Struts 1.0.2
>
> The problem
>
>
> I have successfully used the Struts database connection pooling in a trial
> web app, but as far as I can tell, a reference to the datasource can only be
> obtained from within an Action class (or d
You can too use the DBCP from jakarta, I'm using it and works perfectly:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html
-Mensaje original-
De: Steve McLeod [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 02 de septiembre de 2002 2:10
Para: '[EMAIL PR
Here's how I do it:
I defined a Database class with a constructor that takes a Datasource
object. It also has a static getSystemDatabase() method and a getConnection
method. I subclassed the struts ActionServlet and get ahold of its
DataSource (defined in struts-config.xml) and pass it into m
10 matches
Mail list logo