[JBoss-user] [Messaging, JMS JBossMQ] - Re: Class Cast Exception -- By HelloDr

2006-07-05 Thread genman
What's the type of the object? E.g. Object o = ... System.out.println(class is + o.getClass()); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955686#3955686 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955686 Using

[JBoss-user] [Messaging, JMS JBossMQ] - Re: Class Cast Exception -- By HelloDr

2006-07-05 Thread hellodr
Thanks genman.. The type of the Object is org.jboss.mq.SpyQueue. But I dont need to use SpyQueue or SpyConnectionFactory. I prefer to use QueueConnectionFactory and Queue Connection in my program. But When do a JNDI lookup like SpyConnectionFactory factory = (SpyConnectionFactory)