RE: Running Consumer sample:
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
What is the type of the class you're trying to cast to? If the destination bound in JNDI is a queue, you will get this problem. -Tim PS: this should have been on the user list > -----Original Message----- > From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of > Thomas, Ivy > Sent: Friday, 25 July 2003 7:25 AM > To: 'openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org' > Subject: [openjms-developer] Running Consumer sample: > > > Hello, > Lookup of topic failed. Here is what I did. > 1. startup -config ../config/tcp_jms.xml > 2. runconsumer -topic topic1 -mode tcp -persistent > The error is : > > examples client.console.SimpleConsumer -topic topic1 -mode tcp -persistent > java.lang.ClassCastException > at > openjms.examples.client.console.SimpleConsumer.main(SimpleConsumer.ja > va:251) > Fatal error: java.lang.ClassCastException > Exiting..... > In the non persistent mode the Consumer (createtopic instead of lookup) > works fine. It is failing at lookup of the topic name. I ran this example > after my code started failing on lookup:( > Appreciate your help. > Thanks > Ivy > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072 > 303_01/01 > _______________________________________________ > openjms-developer mailing list > openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/openjms-developer >