Hi folks
I am trying to
test out JMS support within WSAD 5.1 on WinXP. I have my QueueConnectionFactory (QCF) and Queue configured (Q). Using the MQ Simulator for
Java Developers, I deploy my EAR file to my server containing my JMS test code:
1 InitialContext context = new InitialContext();
2 QueueConnectionFactory qcf = (QueueConnectionFactory) context.lookup("QCF");
3 QueueConnection conn = qcf.createQueueConnection();
4 conn.start();
5 QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
6 Queue q = (Queue) context.lookup("Q");
7 QueueSender sender = session.createSender(q);
8 TextMessage sentMessage = session.createTextMessage("My first JMS message.");
9 sender.send(sentMessage);
10 QueueReceiver receiver = session.createReceiver(q);
11 Message receivedMessage = receiver.receiveNoWait();
12 System.out.println(receivedMessage.getText());
It begins to launch properly until it gets to line 3 when it crashes with this stacktrace:
MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:556)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1736)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1129)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:170)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:145)
at jms.test.PointToPoint.<init>(PointToPoint.java:35)
at jms.test.PointToPoint.main(PointToPoint.java:104)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
Any ideas on how I can troubleshoot this problem?
Thanks,
matt