I am using EJB3 on Jboss 4.0.4. I have a MDB which upon getting a message calls the stateless session bean(SSB). I am using the container managed transaction. The SSB since has to read lot of data from the Db and parse I wanted to increase the transaction timeout. I tried using the @TransactionTimeout annotation but it does not seem to work as I keep getting the Transaction is not active: tx=TransactionImpl:XidImpl exception.
But when I changed the timeout value through the admin web console it works fine.
Also I have the @ActivationConfigProperty(propertyName="transactionTimeout" value="1800") set on the MDB.
Thanks in advance