s.connection().commit();
s.close();
}
public void testService() throws Exception {
HibernateService hs = new HibernateService();
hs.setJndiName("SessionFactory");
hs.setMapResources("net/sf/hibernate/test/Simple.hbm.xml, net/sf/hibernate/test/Blobber.hbm.xml");
hs.setShowSqlEnabled("true");
hs.start();
hs.stop();
hs.setProperty("foo", "bar");
hs.start();
hs.stop();
}