You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by dennis bekkering <dj...@hotmail.com> on 2004/06/10 05:44:55 UTC

transaction spanning multiple methods

Hello,

I have a general question about use of transactions , i am not really
confidend in this area. I have delegate classes to store and get objects
from the database. eg

ContactDelegate.storeContact() and
MailDelegate.storeMail() and so on ...

I like to reuse those methods and dont want to write a method for every
possible storing sequence.In a certain case  i like to store the contact
only if the mail was stored without any problems. In an other case i just
like to store the mail. I cannot begin the transaction in the methods
because it would not be one transaction if i call the methods one after the
other. I have got the feeling that i 'am asking a really stupid question but
i have got a hard time finding a good solution for my need.

regards,
Dennis


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org