applet cannot access jms
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rachna_chadha
Posted On:   Thursday, August 21, 2003 06:03 AM

I am trying to use JMS in applet. I am using Internal Webspshere JMS Server. I was not able to do JNDi lookup of connection factory , so I added com.ibm.mq.jar , com.ibm.mqjms.jar and jms.jar in claspath. Adding this solved my problem . Now I am able to do JNDI lookup of connection factory. But , when I go to make connection connection=qcf.createQueueConnection(); I am getting following exception. MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:546) at com.ibm.mq.jms.MQConnection.creat   More>>



I am trying to use JMS in applet. I am using Internal Webspshere JMS Server. I was not able to do JNDi lookup of connection factory , so I added com.ibm.mq.jar , com.ibm.mqjms.jar and jms.jar in claspath. Adding this solved my problem . Now I am able to do JNDI lookup of connection factory. But , when I go to make connection




connection=qcf.createQueueConnection();

I am getting following exception.



MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:546) at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1450) at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960) at com.ibm.mq.jms.MQQueueConnection. (MQQueueConnection.java:159) at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:215)




Any one having any idea about this exception ? I am stuck.. I will appreciate any help ?

Thanks


Rachna

   <<Less

Re: applet cannot access jms

Posted By:   Russ_Ray  
Posted On:   Thursday, September 11, 2003 03:02 PM

I am having a similar problem. I am using WSAD 5.1 and the embedded JMS. I thought I would join in on this issue. Very little is out on the web concerning this issue:





com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:172)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11._createManagedConnection(MQJDManagedConnectionFactoryJ11.java:128)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11.createManagedConnection(MQJDManagedConnectionFactoryJ11.java:146)
at com.ibm.mq.StoredManagedConnection.(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:682)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:620)
at com.ibm.mq.MQQueueManager.(MQQueueManager.java:437)
at com.ibm.mq.MQSPIQueueManager.(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1383)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960)
at com.ibm.mq.jms.MQTopicConnection.(MQTopicConnection.java:152)
at com.ibm.mq.jms.MQTopicConnection.(MQTopicConnection.java:114)
at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:337)
at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:214)
at Subscriber.(Subscriber.java:39)
at Subscriber.main(Subscriber.java:100)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:546)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1450)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960)
at com.ibm.mq.jms.MQTopicConnection.(MQTopicConnection.java:152)
at com.ibm.mq.jms.MQTopicConnection.(MQTopicConnection.java:114)
at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:337)
at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:214)
at Subscriber.(Subscriber.java:39)
at Subscriber.main(Subscriber.java:100)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

Please Answer

Posted By:   rachna_chadha  
Posted On:   Friday, August 22, 2003 08:03 AM

Any help will be appreciated !
Thanks
Rachna

Please Answer

Posted By:   rachna_chadha  
Posted On:   Friday, August 22, 2003 08:03 AM

Any help will be appreciated !
Thanks
Rachna

Please Answer

Posted By:   rachna_chadha  
Posted On:   Friday, August 22, 2003 08:02 AM

Any help will be appreciated !
Thanks
Rachna
About | Sitemap | Contact