Try this
| try{
| School sc1 = new School("first");
| em.persist(sc1);
| if(i == 1) throw new Exception();
| School sc2 = new School("second");
| em.persist(sc2);
| }catch(Exception e){
|
| System.out.println("roll back?");
| throw new RuntimeException(e);
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114499#4114499
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114499
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user