8687888990919293949596
DeploymentUnitDAO du = conn.createDeploymentUnit("foo"); assertNotNull(du); assertEquals("foo", du.getName()); assertNotNull(du.getDeployDate()); } finally { conn.rollback(); conn.close(); } conn = cf.getConnection(); conn.begin();