2 Replies Latest reply on Aug 24, 2010 8:57 AM by borf gordon

    How to reference an EJB from code in 2 separate jars

    borf gordon Newbie


      I have an stateless EJB "MyEjb" which needs to be injected into two other MDBs. The stateless MyEjb defines both a local and remote interface. This MyEjb is included in both JAR1.jar/JAR2.jar and referenced from classes in both JAR1.jar and JAR2.jar.


      When deployed to jboss 4.2.2 everything works fine


      When deployed to jboss 5.1.0 we get a Naming exception that MyEjb/remote is already defined.


      How can we get around this?