2 Replies Latest reply on Jan 5, 2011 3:00 AM by nickarls

    MDB Deployment in AS 6, Per EE 6 spec

    meetoblivion

      Hi there

       

      Found something peculiar today.  Right now my deployment looks like this:

       

      WAR-> bunch of JARs

       

      In both the WAR and JAR I have multiple EJBs - Session beans and MDBs.  I've noticed that the MDBs in the JAR files do not get deployed.  Session beans do.  The MDBs in the WAR file do in fact get deployed.

       

      I've tried setting up an ejb-jar.xml in all files, but no luck.  This deployment should work, right?

        • 1. Re: MDB Deployment in AS 6, Per EE 6 spec
          meetoblivion

          BTW, when I say do not get deployed I mean that the deployment works successfully, but does not include the MDBs in the list of deployed objects.

          • 2. Re: MDB Deployment in AS 6, Per EE 6 spec
            nickarls

            I dropped a jar containing

             

            @MessageDriven
            public class MDB implements MessageListener {
            @Override
            public void onMessage(Message arg0) {
            }
            }

            @MessageDriven

            public class MDB implements MessageListener {

             

            @Override

            public void onMessage(Message arg0) {

            }

             

            }

            into the deploy folder and got the blahablaha about the missing activation config so at least it appears to pick it up...