I want to divide my web application into some module jars(as my project is so large, and want to make deployment easier), each module jar contains the module spec entities. As in a WAR, i want these module jars use the root /WEB-INF/classes/persistence.xml, but after my tries, i am failed.
my war packaging as follows:
app.war/ META-INF/ MANIFEST.MF WEB-INF/ web.xml components.xml faces-config.xml pages.xml classes/ META-INF/ orm.xml persistence.xml lib/ my-module1.jar/ META-INF/ MANIFEST.MF components.xml org/ jboss/ module1/ Entity1.class ... seam.properties ... home.xhtml entity1List.xhtml entity1.xhtml ... my-module2.jar/ META-INF/ MANIFEST.MF components.xml org/ jboss/ module2/ Entity2.class ... seam.properties ... home.xhtml entity2List.xhtml entity2.xhtml ... ... login.xhtml register.xhtml ...