> The other thing is, in my EAR, there are many EJB
> modules and they all
> share common persistence unit which is defined in
> separate JAR, so I
> wouldn't merge EJB module and JPA together. Such a
> merge would make
> persistence unit local to that EJB module alone and
> no other modules
> (be it EJBs or WARs) would have access to it.
We're in the same boat. Duplicating the JPA entities in each EJB module would be a very poor workaround.
[Message sent by forum member 'theodan']
http://forums.java.net/jive/thread.jspa?messageID=396023