• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

JMS Configuration problem

Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this link
[ December 26, 2004: Message edited by: Amer Arman ]
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic