[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - question about transaction
liuliu
do-not-reply at jboss.com
Thu Aug 28 04:08:48 EDT 2008
Hi,
I am working with an old database without transaction, So I add anonymous wrote : @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) to my sessionbean. but i get this exception
anonymous wrote : EntityManager must be access within a transaction when I persist an object.
If i comment the @TransactionAttribute, the persist works, But i got a anonymous wrote : javax.transaction.RollbackException after invoke the EJB method.
what should i do to avoid these problems?
thanks in advance
liu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172973#4172973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172973
More information about the jboss-user
mailing list