• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Packaging - JPA Persistance Archive

 
Arek Przechodzki
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 163
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already saw this works with JBoss/Wildfly (using jboss-modules feature or the manifest.mf) (If I understood correctly)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic