I have one session bean that is calling few other session beans. If i call EntityManager.persist(myObject) within first session bean (called from servlet), i can see in APPServer's console Hibernate's INSERT statement.
If i stop application server at this point, i can't see this record inserted in database. After that persist, i am calling other session bean with saved entity as argument. When i call manager.refresh(myObject) i get EntityNotManaged exception...
What can be the problem? I guess something with transactions, but had anyone had those problems?
I am using GlassFish V2 with hibernate as JPA provider
[ July 13, 2008: Message edited by: Marko Novakovic ]