1 Reply Latest reply on Jun 23, 2002 1:01 PM by aanchalm

    MQSeries/JBoss MDB/3rd Party Messaging

    aanchalm

      Hi,

      I am using MQSeries 5.2 with Jboss 2.2.2 . As described in the forums , I first setup the Administartive Objects using JMSAdmin of MQseries . Then :

      4. Create a custom adapter - all i did was change the class name of the initial context factory in the JBossMQProvider class. (Suggestion to the Maintainers of JBossMQ - make the initial context factory configurable from the JMS provider loader mbean - no custom class would be needed then.)

      5. Create an external JNDI context

      external/fs
      external.fs.props
      javax.naming.InitialContext


      The external.fs.props file was placed in $JBOSS_DIST/conf/default and contained

      java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
      java.naming.provider.url=file:///jndiRoot

      Note: these values are the same as those in step 4.

      6. Configure your default JMS provider to use your custom class (also make sure that you have the StdJMSPool mbean loaded)


      DefaultJMSProvider
      org.jboss.jms.jndi.JBossMQSeriesProvider
      file:///jndiRoot
      QueueConnectionFactory
      QueueConnectionFactory





      My Jboss.xml file is as follows :


      <message-driven>
      <ejb-name>SalesMDB</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name> ivtQ </destination-jndi-name>
      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <jndi-name>external/fs/ivtQCF</jndi-name>
      </resource-ref>
      </message-driven>


      But when i deploy my ear file , it throws an error saying ivtQ not bound . But they exist in the JMSAdmin context.

      If i set the
      <destination-jndi-name> queue/ivtQ </destination-jndi-name>

      and create a queue with the same name in the jbossmq.xml file , it deploys the ear properly , and my message is sent to the queue .

      But the MDB doesnt work and my message stays as it is in the MQSeries queue. Only the send part works , MDB doesnt seem to function . I am confused as to what is missing .

      Please HELP !!!!!!!

      thanx,
      aanchal

        • 1. Desparate help need to configure MQSeries with JBoss2.2
          aanchalm

          I am still fightin as to how do get MQseries 5.2 configured to Jboss 2.2 . I have managed to get a point where Mqseries has started to interact . But i am now gettin this funny error as follows :

          Unable to load message catalog - mqji
          [Container factory] WARNING: Using a non-XA QueueConnection. It will not be able to participate in a Global UOW
          [Container factory] Setting listener for session
          [Container factory] DEBUG Error in adding to pool: javax.jms.JMSException: MQJMS1010: not implemented Pool: org.jboss.jms.asf.StdServerSessionPool@2cbc86 listener: org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl@d3f0d
          [Container factory] WARNING: Using a non-XA QueueConnection. It will not be able to participate in a Global UOW .


          I tried hunting all over as to what the problem is and how to go about solving it . I desperately need help as to how to get Mqseries working with JBOSS .
          Please someone help out and tell me where am i going wrong and what should i do !!
          HELP!!!!!!!!!!!!!!!!!!

          thanx,
          Aanchal.