2 Replies Latest reply on Dec 25, 2004 11:00 AM by Gerald Quintana

    Deploying 2 MDB with same EJB Name into different EJB Jars f

    Gerald Quintana Newbie


      In my JBoss 4.0.1RC2, I have set up 2 applications (2 EARs). Both of them have their own EJBs. Both of them contains an MDB which is differently implemented and located in a different packages but has the same ejb-name ExempleMessage in the ejb-jar.xml.

      On deploy time, I get the following error:

      Initialization failed jboss.j2ee:module=MyrabelCommunication.jar,service=EjbModule
      javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=local/ExempleMessage,service=EJB already registered.

      JBoss wants to bind both MDBs with a default JNDI name local/ExempleMessage and this is bad.

      I had to change the EJB name in one of the EARs.

      I this a bug or feature?