[jboss-user] [EJB 3.0] - Re: How to catch transaction time out exception?

skjolber do-not-reply at jboss.com
Fri May 23 11:57:02 EDT 2008


Hi,

I have not tried this looking for timeouts, but try controlling the transactions manually using first

@TransactionManagement(TransactionManagementType.BEAN)

and 
  | @Resource
  | UserTransaction utx;
  | 
in the following way:

  | utx.begin();
  | ...
  | utx.commit();
  | 
with exception handling.

However it is not clear from your mail if you actually need a transaction that last for 5+ minutes, or if it just is a long-lasting call that happends to be inside a transaction?

Thomas

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153020#4153020

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153020



More information about the jboss-user mailing list