I have a 'modulename'.jar containing all classes relevant to the data 
integration tier. This is a plug and play module which must not have 
dependencies outside of the module. The problem is that I can't create an 
EntityManagerFactory in a managed transaction or I get the following exception:


  | java.sql.SQLException: You cannot set autocommit during a managed 
transaction!
  | 

If I obtain the Factory from a dummy SessionBean that does not support 
transactions, all persists I do with the EntityManagers I obtain from the 
Factory aren't committed.

So my question is:
How can an EntityManagerFactory be created without the use of intervention from 
outside the designated module? 

(eg. initializing the Factory from a Servlet with load on startup enabled isn't 
a good solution for this project)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950605#3950605

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950605


_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to