2 Replies Latest reply on Jul 21, 2009 11:56 AM by Scott Ford

    Cannot get rid of JMS header using servicemix-jms w/IBM MQ

    Roger Joelsson Novice

      Hi all,

       

      I'm experiencing a problem using IBM MQ with the servicemix-jms component. The task is to use ServiceMix to connect to a non-JMS mainframe system over IBM MQ. The problem is that I cannot get rid of the JMS header in the message being sent to the external receiver!

       

      After some research, I've learnt that the correct way to get rid of the JMS header is to call:

       

      queue.setTargetClient(com.ibm.mq.jms.JMSC.MQJMS_CLIENT_NONJMS_MQ)

       

      However, using the servicemix-jms component, I cannot get hold of the actual queue instance. All I can do is to set up the ConnectionFactory instance in the XBean, passing it to the jms:provider declaration. I cannot find any way to directly access/modify the actual JMS queue.

       

      Any hint that may get me further is greatly appreciated!

       

      Regards,

      Roger

        • 1. Re: Cannot get rid of JMS header using servicemix-jms w/IBM MQ
          Roger Joelsson Novice

          Completion to the above:

           

          In further attempts to get rid of the RFH2 header, I tried the following:

           

          Use jms:endpoint instead of jms:provider in the XBean file. Using jms:endpoint, I can access the jmsProviderDestinationName attribute. This attribute (as of the servicemix-jms source code) is used internally when the BC does its session.createQueue(..) calls.

           

          I try to set the jmsProviderDestinationName to the following MQ URL:

           

          queue:///MYQUEUE?targetClient=1

           

          I've also tried specifying the Queue Manager, thus including it in the URL as follows:

           

          queue://QMGR/MYQUEUE?targetClient=1

           

          Though, it does not work. I'm running out of ideas now, does anyone have any further ideas?

           

          Regards,

          Roger

          • 2. Re: Cannot get rid of JMS header using servicemix-jms w/IBM MQ
            Scott Ford Newbie

            I am encountering the exact same issue.  There doesn't seem to be a way to get a hold of the targetClient property in the xbean.  Has anyone had luck doing this?