Mq Error Code 2539
Contents |
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support
MQSeries.net Forum Index » General IBM MQ Support » Error code 2539 Goto page 1, 2Next Error code 2539 « View previous topic :: View next topic » Author Message yrspatel Posted: Thu Jan 29, 2009 2:30 am Post subject: Error code 2539 NoviceJoined: 10 Jul 2008Posts: 22 Hi, I am new to the technology. Now i getting 2539. It is showing channel "receiver" http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.tro.doc/q045390_.htm on the remote machine is not a suitable type. currently i had created one queue manager (QManager) and one local queue (LOCAL) two channel "sender" and "receiver". Sender is used to send the message to our client and receiver is used the message from the client. I am receiving the message on my local queue ("Local"). Now i am writing the the code to connect to Qmanager and try to http://www.mqseries.net/phpBB2/viewtopic.php?t=47447 get the message from the "local" queue. but it is giving 2539. Back to top Vitor Posted: Thu Jan 29, 2009 3:16 am Post subject: Re: Error code 2539 Grand High PoobahJoined: 11 Nov 2005Posts: 23698Location: Ohio, USA yrspatel wrote: I am receiving the message on my local queue ("Local"). Can I assume you mean you can see the message on the queue via the MQExplorer or similar? yrspatel wrote: Now i am writing the the code to connect to Qmanager and try to get the message from the "local" queue. but it is giving 2539. How does your code connect to the queue manager? Is the queue manager configured to support this? Does the sample code (amsqbcg / amqsget) work properly? Is this the same code you refer to here?_________________Honesty is the best policy. Insanity is the best defence. Back to top yrspatel Posted: Thu Jan 29, 2009 3:23 am Post subject: Error code 2539 NoviceJoined: 10 Jul 2008Posts: 22 Hi, Yes in the MQExplorer i can see the message in the Localqueue. Even i can browse the messages. But thru the .net i am getting the above error. I tried using the cmd prompt by amqsget "local" but is giving error code 2059 Is thehere for a quick overview of the site Help Center Detailed answers to any questions you might have http://stackoverflow.com/questions/21830631/mq-connection-to-host-rejected-channel-negotiation-failed Meta Discuss the workings and policies of this site About Us http://stackoverflow.com/questions/18623642/mqseries-type-of-remote-channel-not-suitable 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 mq error like you, helping each other. Join them; it only takes a minute: Sign up MQ: Connection to host rejected | Channel negotiation failed up vote 1 down vote favorite Hello I have one big problem with connecting to IBM WebSphere MQ using JMS I use: Win 7 JDK 1.7 IBM WebSphere MQ server 7.5.0.2 GlassFish 4.0 mq error code I make one QueueManager named test1 and one queue in that named test1q and one channel for negotiation named test1channel My code is here: StandaloneSender s = new StandaloneSender(); try{ s.send(“hello word”); }catch (Exception e){ e.printStackTrace(); } StandaloneSender.java import javax.jms.Message; import javax.jms.QueueConnection; import javax.jms.QueueSender; import javax.jms.QueueSession; import javax.jms.Session; import javax.naming.NamingException; public class StandaloneSender { private P2PUtils utils; private QueueConnection connection; private QueueSession session; private QueueSender sender; public void send(String message) throws NamingException, JMSException, IOException { StandaloneSender sender = new StandaloneSender(); sender.connect(); sender.sendMessage(message); sender.disconnect(); } public StandaloneSender() { utils = new P2PUtils(); } private void connect() throws NamingException, JMSException { connection = utils.getConnection(); session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); sender = session.createSender(utils.getQueue()); System.out.println("Sender started."); } private void sendMessage(String text) throws JMSException { Message message = session.createTextMessage(text); sender.send(message); System.out.println( "Sent message <" + text + "> with ID <" + message.getJMSMessageID() + ">"); } private void disconnect() throws JMSException { sender.close(); session.close(); connection.close(); System.out.println("Sender stopped."); } } P2PUtils.java import javax.jms.JMSException; import javax.jms.Queue; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory; import javax.naming.Context; import javax.naming.NamingException;
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies 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: Sign up MQSeries Type of remote channel not suitable up vote 0 down vote favorite Following a slightly modified example I have : public class MqTestClient { public static void main(String[] args) throws Exception { MQQueueConnectionFactory factory = new MQQueueConnectionFactory(); factory.setTransportType(WMQConstants.WMQ_CM_CLIENT); factory.setHostName("127.0.0.1"); factory.setPort(1414); factory.setQueueManager("QMA"); factory.setChannel("FROM_CHANNEL"); MQQueue queue = new MQQueue("QUEUE_FROM"); // connection pooling MQEnvironment.addConnectionPoolToken(); System.out.println("Sending..."); for (int i = 0; i < 5; i++) { MQQueueConnection con = (MQQueueConnection) factory.createConnection(); With MQ Explorer I've set up a Receiver Channel FROM_CHANNEL and a local queue QUEUE_FROM. This is all run on one Ubuntu machine. I get "Type of remote channel not suitable for action requested". From my searches it looks like this just refers to a sender not sending to a receiver channel which in this case is not the case. Exception in thread "main" com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: null at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:585) at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:221) at com.ibm.msg.client.wmq.internal.WMQConnection.