0 Replies Latest reply on Aug 28, 2008 4:08 AM by liuliu

    question about transaction

    liuliu

      Hi,

      I am working with an old database without transaction, So I add

      @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
      to my sessionbean. but i get this exception
      EntityManager must be access within a transaction
      when I persist an object.

      If i comment the @TransactionAttribute, the persist works, But i got a
      javax.transaction.RollbackException
      after invoke the EJB method.

      what should i do to avoid these problems?

      thanks in advance

      liu