using jboss 4.2.2.ga, seam 2.0.0.ga ,jta, enterprise management
I need transactionmanagement, but not with the classical helpers
container transaction mangement commits or rollsback the transaction
at the end , leading to timeouts and rolling back multiple correct transactions.
I handle thousands of [independent] updates in a loop,
every item in the loop is individualy commited or rolled back.
seam inects me the entityManger em I can get the session em.getdelegate()
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) //NOTSUPPORTES suspend all active transactions
loop{ ses =(Session) em.getDelegate(); txn=ses.getTransaction();//get transa //txn= ses.beginTransact txn.begin();
@TransactionManagement(TransactionManagementType.BEAN)