Results 1 to 1 of 1
- 08-18-2008, 03:08 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 7
- Rep Power
- 0
JMSException : MQJMS2005: failed to create MQQueueManager
Hi all,
I get the following error while compiling my standalone java code to write data into a MQueue.
Find below the Error, followed by the Code.
What is the problem in this. Any suggestions pls let me know. Thanks
Error:--------------------------------
Exception in thread "main" javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '172.26.26.14:B1Q1'
at com.ibm.mq.jms.services.ConfigEnvironment.newExcep tion(ConfigEnvironment.java:546)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection. java:1450)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnec tion.java:960)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueCon nection.java:159)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueCon nection.java:77)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueu eConnection(MQQueueConnectionFactory.java:142)
at Inbound.main(Inbound.java:69)
--------------------------------
Code:--------------------------------
MQQueueConnectionFactory qcf = new MQQueueConnectionFactory();
QueueConnection connection=null;
QueueSession session=null;
Queue orderQueue=null;
QueueSender qs=null;
qcf.setQueueManager("B1Q1");
qcf.setHostName("172.26.26.14");
qcf.setPort(23);
qcf.setChannel("SYSTEM.DEF.SVRCONN");
qcf.setTransportType(0);
connection = (QueueConnection) qcf.createQueueConnection();
session = (QueueSession) connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
orderQueue = session.createQueue("PBS.OFT.NEMKONTO.AFSENDELSE") ;
qs = session.createSender(orderQueue);
--------------------------------
Similar Threads
-
Intial Session Factory Creation Failed.
By endx in forum Advanced JavaReplies: 3Last Post: 06-29-2008, 05:12 AM -
Java failed to reach to a PC in local LAN
By JavaEmpires in forum NetworkingReplies: 1Last Post: 01-24-2008, 06:30 PM -
Initial SessionFactory creation failed
By escit in forum JDBCReplies: 1Last Post: 08-13-2007, 03:46 AM -
Loading of JSP file failed
By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 08-06-2007, 01:15 AM -
Compile failed, messages should have been provided
By leonard in forum New To JavaReplies: 2Last Post: 07-30-2007, 05:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks