0 Replies Latest reply on May 31, 2010 11:55 AM by YATIM Khalid

    Transaction - Exception Handeling

    YATIM Khalid Newbie


      I'm trying to call Seam component (that send a jms message to a queue) from my own class (not a seam component), if the queue is ok then all go fine! but when the queue is down à RuntimeException is generated and transaction is rolledback and i can't do anything whith my database.

      Im getting this error

      ERROR org.jboss.aspects.tx.TxPolicy javax.ejb.EJBTransactionRolledbackException: EntityManager must be access within a transaction

      i need store the state of my entities in database and retry sending messages later.

      How can'I do it?