RE: InvalidDestinationException: Mismatched destination properties for destination with name=topic1
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
The topic you are using doesn't have the same properties as a destination with the same name, being managed by the server. This will typically happen if you have used the TopicSession.createTopic() method giving a name for a topic that is persistent on the server. For persistent topics, you should look them up using JNDI. -Tim > -----Original Message----- > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf > Of Rajiv Kanaujia > Sent: Friday, 20 January 2006 1:40 AM > To: [email protected] > Subject: [openjms-user] InvalidDestinationException: > Mismatched destination properties for destination with name=topic1 > > For non-durable subscriber, A MessageConsumer can be created > via a TopicSession. > Example: consumer = > ((javax.jms.TopicSession)m_session).createSubscriber((Topic)de > stination,null,true); > When I try to create one for topic1, I get follwoing > exception. Any clue what is going wrong? > > EXCEPTION javax.jms.InvalidDestinationException: Mismatched > destination properties for destination with name=topic1 > at > org.exolab.jms.messagemgr.ConsumerManagerImpl.getDestination(C > onsumerManagerImpl.java:772) > at > org.exolab.jms.messagemgr.ConsumerManagerImpl.createConsumer(C > onsumerManagerImpl.java:277) > at > org.exolab.jms.server.ServerSessionImpl.createConsumer(ServerS > essionImpl.java:310) > at > org.exolab.jms.server.net.RemoteServerSession.createConsumer(R > emoteServerSession.java:224) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553) > at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511) > at > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown > Source) > at java.lang.Thread.run(Thread.java:534) > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files for problems? Stop! Download the new AJAX > search engine that makes searching your log files as easy as > surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486& > dat=121642 > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642