Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

JMS Topic : InvalidDestinationException  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
How can one get the exception -javax.jms.InvalidDestinationException ?
I know that I have to make my application use some invalid queue or topic. I could use an invalid queue and hence, got this exception.
However, how can I use some invalid topic ?
I am using WebSphere 4.0.3.
It seems the topics are created dynamically.
Topic creation
So if I give an arbitrary name for a topic while using TopicSession.createTopic(String topicName) it gives me a topic created dynamically.
If I use static topics (created as some JMS Administered objects) I get the exception - javax.naming.NameNotFoundException.
My question is how to use some invalid topic and get this javax.jms.InvalidDestinationException ?
Thanks
-Saurav
 
All of the following truths are shameless lies. But what about this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!