Mq Error Completion Code 2 Reason Code 2540
Contents |
IS cc=2;rc=2540;amq9520: channel not defined remotely INCORRECTLY REPORTED FOR BINDINGS TRANSPORT. A fix is
2540 Mqrc_unknown_channel_name
available WebSphere MQ V7.5 Fix Pack 7.5.0.3 Subscribe You can track all
Caused By: Com.ibm.mq.jmqi.jmqiexception: Cc=2;rc=2540;amq9520: Channel Not Defined Remotely
active APARs for this component. APAR status Closed as program error. Error description If an an application is using
Compcode 2 Reason 2540
the PCFMessageAgent constructor PCFMessageAgent(String, int, String) to connect to a queue manager and the client transport fails for some reason, an exception is thrown with the message: MQJE001: Completion Code '2', Reason '2540'. com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason mq error 2393 '2540'. at com.ibm.mq.MQManagedConnectionJ11.
13-Mar-2011 Related Document Categories: 2540ErrorJavaWebsphereWmqMqje001Reason Get my WebSphere MQ mqje001: completion code '2', reason '2035' course here >> http://www.themiddlewareshop.com/products/ Error com.ibm.mq.MQException: MQJE001: Completion mq error 2058 Code '2', Reason '2540'. The Java code was looking for queue name called mq error 2538 TEST.QUEUE Solution: Create a queue ********************************************************************/ * Create Queues */ ********************************************************************/ DEFINE QLOCAL('TEST.QUEUE') REPLACE + DESCR('My Test Queue') + * http://www.ibm.com/support/docview.wss?uid=swg1IC93267 Persistent messages OK DEFPSIST(YES) + * Shareable SHARE DEFSOPT(SHARED) + * Maximum queue depth MAXDEPTH(100000) Get my WebSphere MQ course here >> http://www.themiddlewareshop.com/products/ About Me Steve Robinson has been working in IT for over 20 years and has provided solutions for http://www.webspheretools.com/sites/webspheretools.nsf/docs/MQJE001%20Completion%20Code%202%20Reason%202540!opendocument many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware. In January 2013, I was awarded the prestigous 'IBM Champion' accolade. Linked In Twitter About Me My Blog Contact Me Read my books? IBM WebSphere Application Server 8.0 Administration Guide WebSphere Application Server 7.0 Administration Guide WebSphere Blog Recent Articles All Articles WebSphere Categories WebSphere Consultant WebSphere Application Server WebSphere Message Broker WebSphere MQ Jython JACL Install Rational Other Categories Shell Scripts Java Consultant Java Sample Code JMS MBeans Tomcat Clustering & Load balance> Websphere Tips Eclipse Contact | Articles | Shell Scripts | Java Code | JACL | Jython | WebSphere MQ | WebSphere Message Broker | WebSphere Blog | © Copyright 2006-2013 Robinson (UK) Limited
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/11237425/always-receive-mqje001-completion-code-2-reason-2059-error of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: mq error Sign up Always receive MQJE001: Completion Code '2', Reason '2059'. ERROR up vote 3 down vote favorite 1 I am new to Web Sphere MQ. I created a Queue Manager, Channel and Listener in AIX as follows: crtmqm MY_Q_MGR strmqm MY_Q_MGR runmqsc DEFINE LISTENER(MY_QM_LISTENER) TRPTYPE(TCP) PORT(5030) DEFINE CHANNEL(MY_QM_CHANNEL) CHLTYPE(SDR) CONNAME('10.128.1.51(5030)') XMITQ('MY_Q_MGR') DISCINT(0) Then I checked that QMGR is running. I saw listener code 2 reason in proc. Then, I tried to create MQQueueManager from java as follows and I got MQJE001: Completion Code '2', Reason '2059'. import com.ibm.mq.MQException; import com.ibm.mq.MQGetMessageOptions; import com.ibm.mq.MQMessage; import com.ibm.mq.MQPutMessageOptions; import com.ibm.mq.MQQueue; import com.ibm.mq.MQQueueManager; import com.ibm.mq.constants.MQConstants; import com.ibm.mq.MQEnvironment; public class MQSample { // code identifier static final String sccsid = "@(#) samples/wmqjava/MQSample.java, jmscc.samples, k700, k700-L080529 1.4.1.1 08/06/01 09:37:53"; // define the name of the QueueManager private static final String qManager = "MY_Q_MGR"; // and define the name of the Queue private static final String qName = "SYSTEM.DEFAULT.LOCAL.QUEUE"; /** * Main entry point * * @param args - command line arguments (ignored) */ public static void main(String args[]) { try { MQEnvironment.hostname = "MY IP ADDRESS"; MQEnvironment.channel = "MY_QM_CHANNEL"; MQEnvironment.port = 5030; // Create a connection to the QueueManager System.out.println("Connecting to queue manager: " + qManager); System.out.println("Connecting to queue manager is finished: " + qManager); // Set up the options on the queue we wish to open int openOptions = MQConstants.MQOO_INPUT_AS_Q_DEF | MQConstants.MQOO_OUTPUT; // Now specify the queue that we wish to open and the open options System.out.println("Accessing queue: " + qName); MQQueue queue = qMgr.accessQ