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.(MQQueueConnection.java:170) at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:80) at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:145) at jms.test.PointToPoint.(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
Might be any of these issues: -You don't have a direct access to this QM and its objects and you may have to supply the user id and password for accesing them. -Your MQSeries listener program is not running.
I have exactly the same problem and have yet find the solution. I have tried in windows 2000, WSAD 5.1 but the same problem still exist. If you find something, please let me know. And vice versa, of course. Many thanks. Wendy