Sorry for the slow reply, I was out sick all of last week. The only change that has been made to the posted ear to make it work for me is adding the class line to test2.jar/META-INF/persistence.xml
| <persistence> | <persistence-unit name="test2"> | <jta-data-source>java:/FCFDS</jta-data-source> | <class>test.C1</class> | <properties> | <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> | <property name="hibernate.hbm2ddl.auto" value="create"/> | <property name="hibernate.show_sql" value="true"/> | <property name="hibernate.use_outer_join" value="true"/> | <property name="hibernate.jdbc.batch_size" value="100"/> | </properties> | </persistence-unit> | </persistence> | To the best of my knowledge each jar file has to have it's own persistence unit defined in the persistence.xml. The class and in theory the jar-file tags essentially import the defined classes into the current jar's persistence unit. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082663#4082663 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082663 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
