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
| ...
|
at first, the problem is that JPA does not load these entities in module jars(sitted in
/WEB-INF/lib directory), one solution is to add all entity classes in the
/WEB-INF/classes/persistence.xml by declaring "class" element.
but i just want not to edit these fussy elements in deployment time, so this solution is
not suit for me.
is there any solutions that i can just put a module jar into /WEB-INF/lib directory, and
dont need to edit the root persistence.xml
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122461#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...