What do you need is user transactions.
| import javax.ejb.TransactionManagement;
| import javax.ejb.TransactionManagementType;
| ....
|
| @TransactionManagement(TransactionManagementType.BEAN)
| public class Qqqqq.......
| @In
| private EntityManager entityManager;
| @Resource
| public UserTransaction utx;
|
| ......
| utx.begin();
| utx.commit();
| utx.rollback();
| ......
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041617#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...