-
1. Re: transaction query
kv_moj May 13, 2003 3:22 AM (in response to benholland)Are you using CMT or BMT?
I must say I don't really know what it means but I've had exactly the same warning before.
I got rid of it by explicitly de-marking the transaction.
Of coarse this can only be done in a BMT environment:
EJBContext context;
try {
UserTransaction tx = context.getUserTransaction();
tx.begin();
////////////////////
transaction code
////////////////////
try {
tx.commit();
} catch(Exception e) {
throw e;
}
} catch(Exception e) {
if (tx != null) {
try {
tx.rollback();
} catch(SystemException se) {} // do nothing as this is the system confimaing the rolback
}
}
I would really like to know exactly why this happens - so I'll keep my eyes on this thread in the hope that one of the gurus out there explains it.
kv. -
2. Re: transaction query
benholland May 13, 2003 7:03 AM (in response to benholland)CMT.
I was wondering if I could opt that bean out of
the transaction but I think I may have to go for BMT and do the call outside the transaction.