wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249


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 - Two Laptop Bag - Tube Organizer
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";
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JMS lookup failed
Similar Threads
is using a static data source ok?
JNDI look up Advantages?
problems with validation and getting data from EJB
jndi lookup
JNDI local context