users@glassfish.java.net

Re: CDI broken between EJB and JPA modules

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Apr 2010 17:36:01 PDT

> 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