Hibernate version: 2.1.6
JBoss version: 3.2.5
Hi.
I lookup a sessionFactory that uses datasource X with JTA.
I open a session, begin a transaction and do some work.
before commiting, i call a third party code (lets call it code1) which also gets a different sessionFactory that uses datasource X, opens a session and begins a transaction.
after that, i again call a third party code (code2) which, again, gets a third sessionFactory that uses datasource Y, opens a session and begins a transaction.
my question is: which code participate in my transaction? both? none? code1?
please help.
Jus.
|