• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

JMS and Websphere - Urgent Help

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I am working with JMS MQ and Websphere. I have followed the documents for setting the JMS environment, which are available at the url:
I used the administrative console to create a conectionfactory and queue. I provided the name for the connectionfactory as myQCF and used the following code in a jsp to get a JNDI lookup.
The code is as below:
InitialContext ctx =new InitialContext();
QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("jms/myQCF");
The second line throws an exception stating that
Servlet Error: jms/myQCF: javax.naming.NameNotFoundException: jms/myQCF
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1435)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1115)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at delete_jsp_9._jspService(delete_jsp_9.java:96)
I have also used myQCF for lookup instead of jms/myQCF, but getting the same exception.
I have used dumpnamespace.bat to check for the JNDI, but this connectionfactory entry for myQCF is not available when this bat is run. That means the jndi is not binded to the websphere. Am i right?
Can anyone help me out in this.
Don't play dumb with me! But you can try this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic