Could it be, that if you use a connection pool, the use of transactions is mandatory ?
fe:
Code:
SessionFactory factory = new Configuration().configure().buildSessionFactory();
Session session = factory.openSession();
User user = new User("ulf");
session.save(user);
session.flush();
session.close();
stores the user in db if no respctively the build-in connection pool is used.
Else the db is empty.
If i wrap the save-call in beginTransaction and commit, then the user gets saved also if i use c3p0 or proxool.
?
Johannes