ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdullah Kauchali <abdullah.kauch...@isanusi.com>
Subject Switching from local to global Transactions at runtime?
Date Thu, 20 Oct 2005 10:53:51 GMT
(Been out of the loop for a while ... so apologies for stupid question.)

Is it possible to switch the transactional properties from local to global
at runtime?

Are there any good examples I can use?

I am aware that the SqlMapClient, when created, relates to one of the
following transactional types:

1)  Local
2)  Global (JTA)
3)  External (???)

Basically, what we're trying to do is create the ability to weave method
calls at runtime.  Suppose we have two methods that update database 1.
This operates with a local transaction manager.

Now, at runtime, we can weave a third method (which updates database 2)
along with the first two - but we still want transactional support (this 
obviously across the two databases!).

So, we want to switch from local to global at runtime.

Any ideas how we can achieve this?

Many thanks in advance & kind regards,


View raw message