• 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
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

jndicontext lookup doubt

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am not getting what will be the value given to xxxxxx for to connect with MQ. I am trying to connect Websphere MQ via JMS Application. My doubt is how i can set that value. Or What that value exactly means or Points. I read so many notes and google texts and all made me into chaos.




I thought i missing a very basic idea. Please give me the details on the .same

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 'xxxxx' represents the name against which you have registered your resource.
 
Ra Sank
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
abhisek,

Thanks for your updates.but i didnt got what exactly it mean.

I got below exceptions during the standalone class which trying to access MQ Server and its Queue.

1) javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException]

2) Caused by: java.lang.ClassCastException

if i gave like this,

ctx.lookup("QueueConnectionFactory");
or
ctx.lookup("jms/QueueConnectionFactory");

3) And Now,

javax.naming.ConfigurationException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.

if i gave like this.

ctx.lookup("java:/QueueConnectionFactory");
or
ctx.lookup("java:comp/env/QueueConnectionFactory");

I want to know what is the value it is looking at inside of look up and how to configure (Either in MQ Server or Environment)

 
reply
    Bookmark Topic Watch Topic
  • New Topic