I have changed it to use SMPC, but I still do get the same problem. Configuration change is:
persistence.xml: <persistence-unit name="test" transaction-type="JTA"> | <jta-data-source>java:/test-ds</jta-data-source> | <properties> | <property name="hibernate.hbm2ddl.auto" value="update" /> | <property name="hibernate.show_sql" value="false" /> | <property name="hibernate.dialect" | value="org.hibernate.dialect.MySQLDialect" /> | <property name="jboss.entity.manager.factory.jndi.name" | value="java:/EntityManagerFactories/test-ds"/> | </properties> | </persistence-unit> components.xml: <core:managed-persistence-context name="entityManager" | auto-create="true" | persistence-unit-jndi-name="java:/EntityManagerFactories/test-ds"> | </core:managed-persistence-context> | Controller: | @PersistenceContext(unitName = "test") | private EntityManager entityManager; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123771#4123771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123771 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
