Re: Idea for chain and DB transactions

2004-09-18 Thread Sean Schofield
t;atta-ur rehman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Craig McClanahan" <[EMAIL PROTECTED]> Sent: Saturday, September 18, 2004 12:30 PM Subject: Re: Idea for chain and DB transactions Craig, That sounds pretty exciting. Now,

Re: Idea for chain and DB transactions

2004-09-18 Thread atta-ur rehman
Craig, That sounds pretty exciting. Now, how could I, if at all, incorporate this Filter/Chian functionality in my existing Struts 1.1 app? ATTA On Sat, 18 Sep 2004 07:19:45 -0700, Craig McClanahan <[EMAIL PROTECTED]> wrote: > Commons Chain (on which Struts Chain is based) has a design pattern

Re: Idea for chain and DB transactions

2004-09-18 Thread Craig McClanahan
Commons Chain (on which Struts Chain is based) has a design pattern built in for the general case were one command in the chain wants to allocate resources that will be required for later commands in the chain, plus the ability to clean up that resource when the chain completes. See the Javadocs f

Re: Idea for chain and DB transactions

2004-09-17 Thread Sean Schofield
"Robert Taylor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, September 17, 2004 3:17 PM Subject: RE: Idea for chain and DB transactions Sean, have you looked at Spring? It uses AOP and you can set up transactions declaratively. I&

Re: Idea for chain and DB transactions

2004-09-17 Thread dhay
ts Users Mailing List" <[EMAIL PROTECTED]> | | cc: | |

RE: Idea for chain and DB transactions

2004-09-17 Thread Robert Taylor
Sean, have you looked at Spring? It uses AOP and you can set up transactions declaratively. I'm just starting to investigate using Spring and I'm really impressed. Like you I had a requirement to demarcate transactions at a high level so that all business objects within the transaction were subj

Re: Idea for chain and DB transactions

2004-09-17 Thread Sean Schofield
dback. sean - Original Message - From: "Erik Weber" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, September 17, 2004 2:49 PM Subject: Re: Idea for chain and DB transactions Overload each existing DAO method wit

Re: Idea for chain and DB transactions

2004-09-17 Thread Erik Weber
Overload each existing DAO method with a secondary method that accepts the Connection as a parameter instead of getting it on its own. Then let your service layer object obtain the Connection, set autocommit to false, invoke all the DAO methods you need, passing the customized Connection to eac