Actually I?ve worked around it. I have implemented it as a Java Bean with an EntityManager being injected.
@In EntityManager entityManager I changed it to a Stateless Session Bean and switched the EntityManager injection to @PersistenceContext EntityManager entityManager; Now it?s working. Maybe the entityManager injected wasn't commited because it was out of an HTTP request. So my conclusion is that to use an EntityManager in the event preDestroyContext.SESSION, we HAVE to implement it as a Session Bean and use a @PersistenceContext annotation to inject it. Right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024784#4024784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024784 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
