[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: CMT doesn't rollback

jaikiran do-not-reply at jboss.com
Wed Dec 19 23:58:05 EST 2007


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



More information about the jboss-user mailing list