ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Java MQI and CCDT

Post new topic  Reply to topic
 Java MQI and CCDT « View previous topic :: View next topic » 
Author Message
LavMQ1980
PostPosted: Tue Aug 09, 2022 7:33 am    Post subject: Java MQI and CCDT Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

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
View user's profile Send private message
LavMQ1980
PostPosted: Tue Aug 09, 2022 11:21 am    Post subject: Reply with quote

Apprentice

Joined: 08 Mar 2022
Posts: 30

It was my mistake .... wrong QM name in the client connection channel
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Aug 09, 2022 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Tue Oct 17, 2023 3:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java MQI and CCDT
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.