• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Packaging - JPA Persistance Archive

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 172
Redhat Ruby C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic