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=bb&op=viewtopic&p=4120438#4120438
Rep
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() {
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 origina
Unfortunately I can't switch to Seam 2 yet (But I'm really looking forward to).
The other approach doesn't have any effect. Here is what I do:
| @Stateless
| @TransactionManagement(TransactionManagementType.BEAN)
| @Name("fillDatabase")
| public class FillDatabaseAction implements FillDa
In Seam2 you can use Transaction.instance().setTransactionTimeout(...).
Otherwise, in Seam 1.2.1, use the EE5 standard approach to get the
UserTransaction object.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064608#4064608
Reply to the post :
http://www.j
Post your code, and please use [ code ] tags.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043205#4043205
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043205
___
jboss-use
this is happening only when i try to insert exceptions into the database.
Thank you
sunil
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043000#4043000
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043000
I asked this a while back
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101719
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041186#4041186
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041186