• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

WSAD JMS Configuration

 
Greenhorn
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.(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
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Matt-
Prefix your JNDI lookup with 'java:comp/env'
e.g. ctxt.lookup("java:comp/env/jms/QCF");
also, double-check your JMS definition to see if it's prefixed with 'jms'--a convention
HTH
max
 
M Givney
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Max,
It was a good suggestion, I tried it out but unfortunately no dice.
Thanks for trying,
Matt
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ugly Redneck
Posts: 1006
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did anyone find a solution to this one? I am having this issue with WSAD 5.1.1 on Windows XP.
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whether MQ Manager and Brokers are started

check it in the console window
 
reply
    Bookmark Topic Watch Topic
  • New Topic