• Post Reply Bookmark Topic Watch Topic
  • New Topic

jms websphere example JNDI exception

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to run following example in websphere5.1.2
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0307_wilkinson/wilkinson2.html

i am getting javax.naming.NameNotFoundException: TCF. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound

i was able to run following example with out any problem
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0307_wilkinson/wilkinson1.html

thanks in advance
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should be moved to the WebSphere Forum.

That said, can you provide more information about the error you are getting, where you are getting it, and what line of code is triggering it.
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to forward this posting to other forum i.e websphere

now i am not getting the jndi error

error i am getting now :

WSCL0014I: Invoking the Application Client class Subscriber
Message :Step1
Message :Step2
Message :Ste3
Message :Step4
Message :Step5
Message :Step6
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2033
at com.ibm.mq.MQQueue.getMsg2(MQQueue.java:893)
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.getBrokerResponse(MQBrokerSubscriptionEngine.java:3296)
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openSubscription(MQBrokerSubscriptionEngine.java:317)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:551)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:372)
at Subscriber.<init>(Subscriber.java:57)
at Subscriber.main(Subscriber.java:89)
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)
com.ibm.mq.jms.NoBrokerResponseException: MQJMS5053: *** No broker response. Please ensure that the broker is running. If you are using the WebSphere MQ broker check that your brokerVersion is set to V1 ***
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.getBrokerResponse(MQBrokerSubscriptionEngine.java:3303)
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openSubscription(MQBrokerSubscriptionEngine.java:317)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:551)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:372)
at Subscriber.<init>(Subscriber.java:57)
at Subscriber.main(Subscriber.java:89)
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)
[ December 19, 2005: Message edited by: kamesh aru ]
 
Roland Barcia
author
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2033


If I remember my MQ error codes, 2033 means that you attempted to read a message and there was nothing on the queue. This usually happens when you specify a timeout value on the receive and nothing has arrived. Check the sending application.
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think i am getting the error at
final TopicSubscriber subscriber = session.createSubscriber(topic);

i did not come to
final TextMessage message = (TextMessage) subscriber.receive();

i followed the settings as in the
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0307_wilkinson/wilkinson2.html

thanks for the responce
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!