This content has been marked as final.
Show 2 replies
-
1. Re: Dependency Injection @EJB in separate jar
waynebaylor Dec 26, 2007 4:14 PM (in response to vri_97)you could put them in an EAR
-
2. Re: Dependency Injection @EJB in separate jar
benc Jan 2, 2008 2:25 PM (in response to vri_97)I had a similar problem with two jars in the same ear. To resolve it I had to import the classes from DEF.jar into ABC.jar via the persistence.xml file in ABC.jar
ABC.jar/META-INF/persistence.xml<persistence> <persistence-unit name="my2ndPU"> <jta-data-source>java:/MyDS</jta-data-source> <class>com.myCo.MyClassInDEF</class> ... </persistence-unit> </persistence>