On Wed, 2003-06-11 at 17:06, Travis Whitton wrote:
> > If you want to use database-level transactions over several requests,
> > you're probably going to want to keep the connection (with its
> > associated transaction) in the session or something.
> 
> But I don't! I only want to use it for a single request. Everything that
> occurs will be within one click of the submit button. In this case is
> thread safety going to be an issue? Also, sorry for the dupe post. I
> accidentally posted to the list from the wrong address.

Okay, then that's easier.  You should keep the connection in a servlet
variable, or maybe a request variable, like:

def awake(self, trans):
    Page.awake(self, trans)
    trans.request().connection = DBPool(...)

  Ian




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to