Hi Andrew,

Andrew Shevel wrote:
Greetings to everyone!

Could someone please give me a clarification on using OJB ADMG-API in managed environment?

We plan to use ODMG-api in managed environment (JBoss, S1AS) with session beans. As I understand transaction handling in this case should be done via UserTransaction object methods (begin, commit, rollback) in BMT mode.


when using session beans both modes are possible CMT and BMT. All ejb-examples shipped with OJB using CMT. Right, when using BMT tx-handling should be done via UserTransaction.



The question is: who actually commits underlying DB connection? Is it application server's transaction manager or OJB?


It's the JTA-TransactionManager (appServer). OJB participate in JTA-tx via javax.transaction.Synchronization interface by add implementation class to current JTA-tx (that's the reason why OJB need access to TransactionManager).



Possible consequence: if application server's transaction manager is actial committer, then we are able to achieve clean distributed transactions when using multiple persistence broker instances talking to their own databases during single UserTransaction. Is this right?


Yep! Recommend to write some test cases, because I never tried it ;-)

regards,
Armin


Thanks in advance.

Andrew Shevel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to