@Test public void testCreateFooRequired() throws Exception { String name = "foo"; assertFalse(queriesEJB.isInDB(name)); ejb.createFooRequired(name); assertTrue(queriesEJB.isInDB(name)); }
public void createFooRequired(String name){ Foo foo = new Foo(name); em.persist(foo); }
EJB_05_REQUIRES_NEW { public void createFooRequired(String name){ Foo foo = new Foo(name); em.persist(foo); } }
EJB_05_REQUIRES_NEW { public void createFooRequired(String name){ Foo foo = new Foo(name); em.persist(foo); }  }
EJB_05_REQUIRES_NEW { public void createFooRequired(String name){ Foo foo = new Foo(name); em.persist(foo); }  void createFooRequired(String name); @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) void createFooRequiresNew(String name); void createTwoWithRollback(String first, String second); void createTwoWithRollbackInEJBCall(String first, String second); void createTwoWithRollbackInEJBCallOnSameTransaction(String first, String second); }
EJB_05_REQUIRES_NEW { public void createFooRequired(String name){ Foo foo = new Foo(name); em.persist(foo); }  void createFooRequired(String name); @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) void createFooRequiresNew(String name); void createTwoWithRollback(String first, String second); void createTwoWithRollbackInEJBCall(String first, String second); void createTwoWithRollbackInEJBCallOnSameTransaction(String first, String second);  }