This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JPA Certification (OCEJPA) and the fly likes Packaging - JPA Persistance Archive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "Packaging - JPA Persistance Archive" Watch "Packaging - JPA Persistance Archive" New topic
Author

Packaging - JPA Persistance Archive

Arek Przechodzki
Greenhorn

Joined: Apr 30, 2014
Posts: 1
Hi

JPA 2.0 Specification enlists possible points of persistance unit root. Apart from EJB, WAR, and application client jar we have EAR lib folder.
I wander though, if we may package persistance unit in a separate persistance archive jar and put it not in EAR lib, but in EAR directly, as a separate module.

I'm thinkink about:

app.ear
--------/lib
------------/some-lib.jar
--------/ejb-jar.jar
--------/punit.jar
-----------------/myentity.class
-----------------/META-INF
---------------------------/persistance.xml

Thanks in advance for your thoughts
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 162

I already saw this works with JBoss/Wildfly (using jboss-modules feature or the manifest.mf) (If I understood correctly)


Please, visit me for some cool tech post at www.ourdailycodes.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Packaging - JPA Persistance Archive
 
Similar Threads
EJB can't find Optional Package and thus Persistence Unit in it
persistence unit scope
JPA Newbie Question
Persistent Unit at EAR level
package structure during design