Nice to change the transaction timeout for every application.
I guess your server does other functions as well
Would you not prefer to set the transaction timeout for those long updates
separately.
as your system will get more load, your new timeout
will ellapse as well.
View the
Hi Dreuzel,
I tried to set the transaction timeout for this function separately, but I
didn't got success.
I used the annotation below at the import function and the timeout still
keeping the default of 300 seconds:
| @TransactionTimeout(value=1000)
| public String importFromFile()
JTA delegate
| ses=(Session) em.getDelegate()
| txn=ses.beginTransaction();
| txn.setTimeout(50);
| ..
| ses.flush();
| txn.commit();
|
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120438#4120438
Reply to the post :