FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please tell me if i'm wrong). -- Forwarded Message From: Mark Lowe [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 09:03:33 +0100 To: Struts Users

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread Matthias Bauer
The normal thing to is the following: You aquire a database connection in the action class and pass it on as a parameter to the bean's database methods. --- Matthias Mark wrote: Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please tell me

FW: dataSources outside of actionservlet

2002-12-17 Thread Mark
thanks in advance mark Many thanks in advance mark -- Forwarded Message From: Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 11:18:25 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: FW: dataSources outside

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
Using the command design pattern you can ensure the DB code needs to be coded only once. See the example below http://www.mail-archive.com/struts-user@jakarta.apache.org/msg24579.html --- Matthias Bauer [EMAIL PROTECTED] wrote: The normal thing to is the following: You aquire a database

Re: FW: dataSources outside of actionservlet

2002-12-17 Thread keithBacon
-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 11:18:25 +0100 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: FW: dataSources outside of actionservlet Sorry to repost this question, but the more i think about it the more i think it a reasonable one (please

RE: FW: dataSources outside of actionservlet

2002-12-17 Thread Edgar P. Dollin
Another option is to aquire the database connection via jndi when you need it. Edgar -Original Message- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:05 AM To: 'Struts Users Mailing List' Subject: Re: FW: dataSources outside of actionservlet