RE: Database Connection in Logic Beans - pooling? => request cycle

2002-09-03 Thread David Graham
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

RE: Database Connection in Logic Beans - pooling? => request cycle

2002-09-02 Thread Frederic Laub
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

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread David Graham
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

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Troy Hart
#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

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Frederic Laub
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

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Troy Hart
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

RE: Database Connection in Logic Beans - pooling?

2002-09-02 Thread Frederic Laub
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

Re: Database Connection in Logic Beans - pooling?

2002-09-01 Thread thart
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

RE: Database Connection in Logic Beans - pooling?

2002-09-01 Thread Miguel Angel Mulero Martinez
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

Re: Database Connection in Logic Beans - pooling?

2002-09-01 Thread David Graham
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