0 Replies Latest reply on Dec 8, 2011 1:41 PM by Ismail Jones

    Message Driven Bean Advice Please

    Ismail Jones Newbie

      I am deploying a message driven bean to JBoss 4.2.3.GA

       

            <message-driven>

               <ejb-name>SCIMSMessageDrivenBean1</ejb-name>                      

               <destination-jndi-name>queue/NZ.NAPUnit.GA.SCIMS.CHANGETOPIC.SUB1</destination-jndi-name>

               <configuration-name>Standard Message Driven Bean</configuration-name>

       

               <resource-ref>

                  <res-ref-name>jdbc/NZ.MSSQL.NAPUNIT_NAPDB</res-ref-name>

                  <jndi-name>java:jdbc/NZ.MSSQL.NAPUNIT_NAPDB</jndi-name>

               </resource-ref>

            </message-driven>

       

       

      ejb-jar.xml

       

            <message-driven id="MessageDriven_1">

               <description><![CDATA[SCIMS MDB NAP Unit]]></description>

       

               <ejb-name>SCIMSMessageDrivenBean1</ejb-name>

       

               <ejb-class>gov.usda.fsa.parmo.nap.unit.ejb.impl.SCIMSMessageDrivenBean1</ejb-class>

       

               <messaging-type>javax.jms.MessageListener</messaging-type>

               <transaction-type>Bean</transaction-type>

               <message-destination-type>javax.jms.Queue</message-destination-type>

               <activation-config>

                 <activation-config-property>

                   <activation-config-property-name>destinationType</activation-config-property-name>

                   <activation-config-property-value>javax.jms.Queue</activation-config-property-value>

                 </activation-config-property>

                 <activation-config-property>

                   <activation-config-property-name>acknowledgeMode</activation-config-property-name>

                   <activation-config-property-value>Auto-acknowledge</activation-config-property-value>

                 </activation-config-property>

                 <activation-config-property>

                   <activation-config-property-name>subscriptionDurability</activation-config-property-name>

                   <activation-config-property-value>Durable</activation-config-property-value>

                 </activation-config-property>

               </activation-config>

       

               <env-entry>

                  <env-entry-name>ejb/BeanFactoryPath</env-entry-name>

                  <env-entry-type>java.lang.String</env-entry-type>

                  <env-entry-value><![CDATA[classpath:gov/usda/fsa/parmo/nap/service/ApplicationContext-SCIMSMessageDrivenBean.xml]]></env-entry-value>

               </env-entry>

       

               <resource-ref id="ResRef_3">

                  <res-ref-name>jdbc/NZ.MSSQL.NAPUNIT_NAPDB</res-ref-name>

                  <res-type>javax.sql.DataSource</res-type>

                  <res-auth>Container</res-auth>

                  <res-sharing-scope>Shareable</res-sharing-scope>

               </resource-ref>

       

            </message-driven>

       

      jbossmq-destinations-service.xml

       

       

        <mbean code="org.jboss.mq.server.jmx.Queue"

           name="jboss.mq.destination:service=Queue,name=NZ.NAPUnit.GA.SCIMS.CHANGETOPIC.SUB1">

          <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>

          <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>

        </mbean>

       

      I am seeing messages on the queue, but no response from the bean!  They are deployed

       

      12:20:21,375 INFO  [ejb.EjbModule] Deploying SCIMSMessageDrivenBean1

      12:20:21,390 INFO  [ejb.EjbModule] Deploying SCIMSMessageDrivenBean2

       

      But never instatiated or called no matter what.  Any advice is appreciated.