hello list,
I would like to clearify, how ojb and jboss handle a transaction in a managed environment exactly. I'm using Jboss and the PersistenceBrokerFactorySyncImpl.
I assume, it's is like that: void func() {
PersistenceBroker broker = getBroker(); <-- here the transaction starts!?
try {
broker.dosomething();
} catch (PersistenceBrokerException e) {
throw new EJBException(e); <-- here the transaction ends: ROLLBACK (appserver tracks the EJBException)
}
<-- here the transaction ends: COMMIT (broker is being released)
}
thanks for your help! andreas