aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Failed to open Queue using MDB in WSAD using MQ Simulator (MQJMS2008) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Failed to open Queue using MDB in WSAD using MQ Simulator (MQJMS2008)" Watch "Failed to open Queue using MDB in WSAD using MQ Simulator (MQJMS2008)" New topic
Author

Failed to open Queue using MDB in WSAD using MQ Simulator (MQJMS2008)

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
I am using WSAD 5.1.2 MQ simulator and created Message Driven Bean. I correctly configured queue, queconnectionfactory, corresponding jndi names and messagelistener port. WSAD uses its internal queue. I get exception saying:
failed to open MQ queue

I successfully did it using WSAD Simulator about a year back, but having trouble in replicating the success.


My queue name: q, jndi name: jms/q

Name of queueconnectionfactory: qcf, jndi name: jms/qcf

When I start WSAD server, I get following error:

The Connection Manager received a fatal connection error from the Resource Adaptor for resource jms/qcf. The exception which was received is javax.jms.JMSException: MQJMS2008: failed to open MQ queue
[10/5/05 17:15:23:734 EDT] 3dd76490 MDBListenerIm W WMSG0019E: Unable to start MDB Listener MyMDBean, JMSDestination jms/q : javax.jms.JMSException: MQJMS2008: failed to open MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:540)
at com.ibm.mq.jms.MQQueueAgent.resolveQueue(MQQueueAgent.java:460)
at com.ibm.mq.jms.MQQueueAgent.getQueueAgent(MQQueueAgent.java:271)
at com.ibm.mq.jms.MQConnectionBrowser.MQConnectionBrowserInit(MQConnectionBrowser.java:277)
at com.ibm.mq.jms.MQConnectionBrowser.<init>(MQConnectionBrowser.java:112)
at com.ibm.mq.jms.MQQueueConnection.createConnectionBrowser(MQQueueConnection.java:775)
at com.ibm.mq.jms.MQConnectionConsumer.<init>(MQConnectionConsumer.java:444)
at com.ibm.mq.jms.MQConnectionConsumer.<init>(MQConnectionConsumer.java:362)
at com.ibm.mq.jms.MQQueueConnection.createConnectionConsumer(MQQueueConnection.java:712)
at com.ibm.ejs.jms.JMSQueueConnectionHandle.createConnectionConsumer(JMSQueueConnectionHandle.java:117)
at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:391)
at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:554)
at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:486)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:482)
at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:152)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:715)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:686)
at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:151)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:475)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:791)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:157)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:153)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:589)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
vinith kumar anandam chidambara
Greenhorn

Joined: Oct 18, 2005
Posts: 1
I have also tried the same as did but no successful output...

Did you get the solution regarding the "failed to open MQ Queue"

Thanks in advance
A.C.Vinith Kumar
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
Go to server properties and choose JMS tab and there u can select radio box as MQ Simulator for java Developers if you using wasad .
 
jQuery in Action, 2nd edition
 
subject: Failed to open Queue using MDB in WSAD using MQ Simulator (MQJMS2008)