File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 163

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Packaging - JPA Persistance Archive