App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Unable to communicate activemq via ibmmq over jms

  • 1.  Unable to communicate activemq via ibmmq over jms

    Posted Tue March 19, 2024 08:22 AM
    Edited by Votarikari Shravan Tue March 19, 2024 08:31 AM

    Hi,

     I am trying to send a message from IBM MQ to ActiveMQ using jms. specified properties on jndi.properties file and converted it into jar as follows <attachment1>. created a policy for jmsprovider as follows <attachment2> and configured on jms output node as follows <attachment3>. when fire a message, it could not get processed by jms output node. giving following error : Invalid broker URL, Failure to obtain JNDI administered objects.

    <attachment4> shows message flow design.

    It would be appreciated if anyone find a cause for it.

    Thanks you.



    ------------------------------
    Votarikari Shravan
    ------------------------------



  • 2.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Wed March 20, 2024 09:15 AM

    What is the destination in the JMS Output node?   Does it match the JNDI name in that file (JMSQueueDestination)?



    ------------------------------
    Tony Hays
    Senior IT Architect
    IBM Global Services
    Spokane WA
    706-305-8487
    ------------------------------



  • 3.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Wed March 20, 2024 09:28 AM

    Hi Tony Hays,

     the name on JMS Output Node for Destination Queue is : JMSQueueDestination. It was matched JNDI name.



    ------------------------------
    Votarikari Shravan
    ------------------------------



  • 4.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Wed March 20, 2024 10:18 AM

    Ok, where is that jndi.properties file?  I'm assuming it's ActiveMQ directory somewhere.  Have you restarted that since making the updates?



    ------------------------------
    Tony Hays
    Senior IT Architect
    IBM Global Services
    Spokane WA
    706-305-8487
    ------------------------------



  • 5.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Thu March 21, 2024 12:36 AM

    yes. I have restarted ActiveMQ and Integration Node after setup has done. I have placed jms.properties file into a seperate folder by renaming as activemq.



    ------------------------------
    Votarikari Shravan
    ------------------------------



  • 6.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Thu March 21, 2024 02:53 AM

    Hi Shravan,

    There's a blog on this: https://community.ibm.com/community/user/integration/blogs/tarandeep-jandu/2022/11/29/send-and-receive-messages-from-active-mq-and-ibm-a

    In the Provider URL, could you drop the "/" operator a the end of the URL.



    ------------------------------
    Tarandeep Singh
    ------------------------------



  • 7.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Thu March 21, 2024 06:08 AM

    Hi Tarandeep Singh, I have tried but still it is throwing same exception (error : Invalid broker URL, Failure to obtain JNDI administered objects.)



    ------------------------------
    Votarikari Shravan
    ------------------------------



  • 8.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Thu March 21, 2024 08:23 AM

    I think the file name needs to be jndi.properties, and should be on the classpath:

    https://activemq.apache.org/components/classic/documentation/jndi-support

    However, I'm not sure just including it where the jar file are will automatically work.  This link suggests adding the location of the file in the JNDI bindings location, although they're also reporting an error, but it may be worth a try.

    http://www.mqseries.net/phpBB/viewtopic.php?t=75391



    ------------------------------
    Tony Hays
    Senior IT Architect
    IBM Global Services
    Spokane WA
    706-305-8487
    ------------------------------



  • 9.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Thu March 21, 2024 08:26 AM

    Now I see maybe you do have that file name, stored inside that jndi.properties.jar.  Correct?



    ------------------------------
    Tony Hays
    Senior IT Architect
    IBM Global Services
    Spokane WA
    706-305-8487
    ------------------------------



  • 10.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Fri March 22, 2024 02:44 AM

    Yes. I have placed the file in a jar. and location was given in jms provider policy. you can see as in RE:5.



    ------------------------------
    Shravan Votarikari Software Developer
    ------------------------------



  • 11.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Fri March 22, 2024 01:09 PM

    Ok, I was able to play around, and I think this is what you need to do:

    1. In the policy, omit JNDI bindings location.  I have only 3 non-default values:  JARs URL; Initial context factory; Connection factory name.
    2. In the JMS node, the policy reference should be in the JMS provider name, not the individual values below.  Leave those other fields blank, and fix your provider name to be the policy name.  The node properties are then for overrides to what is in the policy. 



    ------------------------------
    Tony Hays
    Senior IT Architect
    IBM Global Services
    Spokane WA
    706-305-8487
    ------------------------------



  • 12.  RE: Unable to communicate activemq via ibmmq over jms

    Posted Sat March 23, 2024 07:39 AM

    Hi Tony Hays its working now. Thank you for your help. i followed as you said.



    ------------------------------
    Shravan Votarikari Software Developer
    ------------------------------