Hi,
I have a Session Bean running inside a JBoss controlled transaction that is trying to insert an newly built persisted object using the following code:
Context context = new InitialContext();
SessionFactory sessionFactory (SessionFactory)context.lookup("java:/hibernate/myDS");
Session session = sessionFactory.openSession();
Object object = session.saveOrUpdateCopy(obj);
session.close();
Now if I understand the documentation correcly, JBoss is in control of commiting the transaction I 'm not required to do a flush or a commit. However, the data never gets actually written to the database. What am I missing?
I'm using Hibernate 2.1.2 and JBoss 3.2.4, using JBossCache (not ehache).
Thanks in advance,
Rich
|