Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS Topic : InvalidDestinationException

 
Saurav Chetia
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic