• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

jms websphere example JNDI exception

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 4278
34
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic