ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » problem in looking up QueueConnectionFactory

Post new topic  Reply to topic
 problem in looking up QueueConnectionFactory « View previous topic :: View next topic » 
Author Message
rajarshi
PostPosted: Tue Apr 11, 2006 5:43 am    Post subject: problem in looking up QueueConnectionFactory Reply with quote

Newbie

Joined: 06 Apr 2006
Posts: 3

Hello All,
i am using WebSphere MQ JMS to send & receive message to n from a local queue. But i am facing a problem when looking up the QueueConnectionFactory using filesystem jndi. I have created a context "jms", withing that another context "test" and under it i have created a connection factory "TestQCF" and a queue "TestQ".

Now, i am getting a NameNotFoundException at the following code line.

queueConnectionFactory = (QueueConnectionFactory)
initialContext.lookup("jms/test/TestQCF");

The Exception is :
javax.naming.NameNotFoundException: jms/test/TestQCF

But if i modify the above code in the following way, its working fine.

Context currentContext = (Context)initialContext.lookup("jms/test");

queueConnectionFactory = (QueueConnectionFactory)
currentContext.lookup("TestQCF");

Can anybody explain the reason please ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Apr 11, 2006 1:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Read up on the Sun documentation of the file JNDI. It's all there.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rajarshi
PostPosted: Tue Apr 11, 2006 9:50 pm    Post subject: Reply with quote

Newbie

Joined: 06 Apr 2006
Posts: 3

can you tell me how to get the documentation? it will be gr8 help.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Apr 11, 2006 10:08 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi rajarshi,

Try this too, for an overview.
http://www.mqseries.net/phpBB2/viewtopic.php?t=28458

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » problem in looking up QueueConnectionFactory
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.