-
1. Method level transaction timeout in AS 6.0
jaikiran Feb 28, 2011 9:51 PM (in response to vblagojevic)Yes, that's the correct annotation even in JBoss AS6.
-
2. Method level transaction timeout in AS 6.0
vblagojevic Mar 1, 2011 2:21 PM (in response to jaikiran)I annotated public interface method of SLSB with:
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
@TransactionTimeout(1200)
yet tx manager rolls back tx after default timeout. What I am missing?
-
3. Method level transaction timeout in AS 6.0
vblagojevic Mar 1, 2011 2:29 PM (in response to vblagojevic)I annotated public method of SLSB definition, not a method on some interface. Apologies for confusion.
-
4. Method level transaction timeout in AS 6.0
jaikiran Mar 2, 2011 4:22 AM (in response to vblagojevic)Are you sure you are using the correct annotation? It should be @org.jboss.ejb3.annotation.TransactionTimeout and the value is in seconds.
-
5. Method level transaction timeout in AS 6.0
wolfc Mar 2, 2011 4:23 AM (in response to vblagojevic)Specifying transaction annotations on interface methods is currently broken: https://issues.jboss.org/browse/EJBTHREE-2120
-
6. Re: Method level transaction timeout in AS 6.0
lil_z420 May 25, 2011 3:54 PM (in response to wolfc)So just to be clear, I can't specify a transaction timeout using annotations on a SLSB in AS 6.0? If that is the case, is there a workaround for specifying a timeout that is longer than the default of 5 mins?
I currently have a SLSB with only a remote interface. The SLSB method implementation is annotated with @TransactionTimeout( 900 ) which is ignored and timing out after 5 mins.