File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JMS Topic : InvalidDestinationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS Topic : InvalidDestinationException" Watch "JMS Topic : InvalidDestinationException" New topic

JMS Topic : InvalidDestinationException

Saurav Chetia

Joined: Oct 28, 2002
Posts: 10
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 ?
I agree. Here's the link:
subject: JMS Topic : InvalidDestinationException
It's not a secret anymore!