File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JMS lookup failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS lookup failed" Watch "JMS lookup failed" New topic

JMS lookup failed

Karthika Kannan

Joined: Feb 18, 2006
Posts: 19
I'm using websphere 6.0 with IBM MQ series. I'm trying to send a message to an MDB deployed on the server. But I'm not able to get a Queue or QueueConnectionFactory object when I do the JNDi lookup. I'm not sure how to specify the url for the lookup.
If somebody knows a solution, please help.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276


Please click on the My Profile link above and change your display name to match the JavaRanch Naming Policy of using both your real first and real last names. Right now it only shows your first name.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
H Gokulam
Ranch Hand

Joined: Nov 04, 2003
Posts: 46
Hello Karthika,

Can you tell us, what kind of error you are getting ?
Please post the actual error message.


Harikumar G<br />SCJP 1.4
Karthika Kannan

Joined: Feb 18, 2006
Posts: 19
I'm not able to get a queue or queueConnectionFactory object on doing the lookup on the server(I'm using a j2ee client). I get a NullPointerException.
I used the following lookup urls:


String CONN_FACT_NAME = "jms/TestQCF";
String QUEUE_NAME = "jms/DefaultQueue";

String CONN_FACT_NAME = "java:comp/env/jms/TestQCF";
String QUEUE_NAME = "java:comp/env/jms/DefaultQueue";
I agree. Here's the link:
subject: JMS lookup failed
jQuery in Action, 3rd edition