File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How to reference to a persistence unit in another jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "How to reference to a persistence unit in another jar" Watch "How to reference to a persistence unit in another jar" New topic
Author

How to reference to a persistence unit in another jar

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

I have 2 ejb jars.
They both contain DAO's.

How do inject a persistence unit from jar A to DAO in jar B?

Thank you
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to reference to a persistence unit in another jar
 
Similar Threads
How to Configuring mysql db with JPA aplication?
Can't reach NamedQuery
Named Queries in Persistence Archive Possible?
Persistence Unit Scoping
Persistent Unit at EAR level