• 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris

javax.jms.JMSSecurityException: MQJMS2008: failed to open MQ queue

Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It'll be very helpful if some one can provide resolution to below issue:
javax.jms.JMSSecurityException: MQJMS2008: failed to open MQ queue FUSIONQA.FBSVCS.FUSIONROUTER.REQ
at com.ibm.mq.jms.MQQueueServices.getQueueOpenException(MQQueueServices.java:423)
at com.ibm.mq.jms.MQQueueServices.getOutputQueue(MQQueueServices.java:354)
at com.ibm.mq.jms.JMSServicesMgr.getOutputQueue(JMSServicesMgr.java:145)
at com.ibm.mq.jms.MQSession.createQSender(MQSession.java:6359)
at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:240)
at My_MQ_MsgProducer.initializeSession_send(My_MQ_MsgProducer.java:137)
at My_MQ_MsgProducer.connectMQ2(My_MQ_MsgProducer.java:122)
at My_MQ_MsgProducer.main(My_MQ_MsgProducer.java:37)

Let me give some background about the issue, I'm using a java client trying to connect to WMQ using WMQ & JMS API. I'm getting this error exactly QueueSender mqSender = session.createSender(mqQueue);.
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When you have MQJMS2008, you have no permissions to manipulate that queue, you must get a nested Exception that gives you more information about your error, and it tells you a MQRC Reason Code and Termination Code.

For more info about the Reason Code, open a CMD and type mqrc <reason code you obtain in nested exception>

Analiyzing your error, looks you are permitted to access that queue, i have some questions:

Are you connecting using JNDI? If you are connecting with a class that makes PTP connecting (i mean not using JNDI), you must provide the MQQueueConnectionFactory the channel, the queue manager, the queue name, and the hostname of the server, if you wanna know more about PTP connections, here is: http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/ .

If you are doing this with a remote queue and you are using MQSeries and not WMQ on Windows, you must grant to public all privilegies.

If you can give the nested exception, i will help you.
Wanna see my flashlight? How about this tiny ad?
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
    Bookmark Topic Watch Topic
  • New Topic