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);

--------------------------------