JBoss Community

Re: Can't get @TransactionTimeout to work

created by jaikiran pai in EJB 3.0 - View the full discussion

Pablo Fraga wrote:

 

Hi,

I have the same problem. I'am using EJB3, JBoss 4.2.3 GA, SLSB with CMP transactions.

Code snap:

import org.jboss.annotation.ejb.TransactionTimeout;

@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
@TransactionTimeout(15)
public AbstractResult compra(AbstractCommand command){

The timeout doesn't work for me using this annotation with this full qualified name.

But the thing is that i can't find the other one in any jar provided by JBoss. Can't find org.jboss.ejb3.annotation.TransactionTimeout.

Since you are using, AS 4.2.x, the annotation to use is org.jboss.annotation.ejb.TransactionTimeout.

 

If that doesn't work, then please post relevant EJB code and the logs that indicate that the timeout isn't working.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community