|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java MQI and CCDT |
« View previous topic :: View next topic » |
Author |
Message
|
LavMQ1980 |
Posted: Tue Aug 09, 2022 7:33 am Post subject: Java MQI and CCDT |
|
|
Apprentice
Joined: 08 Mar 2022 Posts: 33
|
Hello,
I'm trying to write a simple program to connect to multi-instance QM from Java. I read several topics here and this is my piece of code:
Code: |
java.net.URL chanTab1 = new URL("file:///C:/Temp/AMQCLCHL.TAB");
System.out.println("Connecting to queue manager: " + qManager);
MQQueueManager qMgr = new MQQueueManager(qManager, chanTab1);
System.out.println("Connected");
|
I'm getting error 2278.
I read many topics here and on internet, but still cannot figure that out.
Any ideas what am I missing?
thanks |
|
Back to top |
|
 |
LavMQ1980 |
Posted: Tue Aug 09, 2022 11:21 am Post subject: |
|
|
Apprentice
Joined: 08 Mar 2022 Posts: 33
|
It was my mistake .... wrong QM name in the client connection channel  |
|
Back to top |
|
 |
exerk |
Posted: Tue Aug 09, 2022 12:24 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Depending on the MQ version being used, a JSON-format CCDT file can be used, and is much more user friendly when it comes to editing...  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Oct 17, 2023 3:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
anandkaruna wrote: |
Java programming is a versatile skill that empowers developers to create robust, platform-independent applications. To enhance your proficiency, start with the basics like variables, loops, and conditional statements. Then delve into object-oriented programming, mastering concepts like classes, inheritance, and polymorphism. Familiarize yourself with data structures and algorithms to optimize code efficiency. Practice error handling and debugging techniques to build resilient applications. Explore Java frameworks like Spring and Hibernate for scalable enterprise solutions. Stay updated with industry trends and best practices, and engage in coding challenges and projects to apply your knowledge. Continuous learning and hands-on experience will propel your Java skills to new heights. |
WTF!!! Troll alert!!!  _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|