Original Message:
Sent: Fri March 22, 2024 01:09 PM
From: Tony Hays
Subject: Unable to communicate activemq via ibmmq over jms
Ok, I was able to play around, and I think this is what you need to do:
- In the policy, omit JNDI bindings location. I have only 3 non-default values: JARs URL; Initial context factory; Connection factory name.
- 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
Original Message:
Sent: Fri March 22, 2024 02:44 AM
From: Shravan Votarikari
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Thu March 21, 2024 08:26 AM
From: Tony Hays
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Thu March 21, 2024 08:22 AM
From: Tony Hays
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Thu March 21, 2024 06:08 AM
From: Votarikari Shravan
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Thu March 21, 2024 02:53 AM
From: Tarandeep Singh
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Thu March 21, 2024 12:36 AM
From: Votarikari Shravan
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Wed March 20, 2024 10:17 AM
From: Tony Hays
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Wed March 20, 2024 09:27 AM
From: Votarikari Shravan
Subject: Unable to communicate activemq via ibmmq over jms
Hi Tony Hays,
the name on JMS Output Node for Destination Queue is : JMSQueueDestination. It was matched JNDI name.

------------------------------
Votarikari Shravan
Original Message:
Sent: Wed March 20, 2024 09:15 AM
From: Tony Hays
Subject: Unable to communicate activemq via ibmmq over jms
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
Original Message:
Sent: Tue March 19, 2024 08:22 AM
From: Votarikari Shravan
Subject: Unable to communicate activemq via ibmmq over jms
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
------------------------------