[jboss-user] [EJB 3.0] - Re: Dependency Injection @EJB in separate jar

benc do-not-reply at jboss.com
Wed Jan 2 14:26:02 EST 2008


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>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116513#4116513

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116513



More information about the jboss-user mailing list