2 Replies Latest reply on Nov 13, 2006 4:17 PM by Jason Christensen

    Durable Topic handing back an SpyTopic?

    Jason Christensen Newbie

      I am getting an error that there is a class cast exception to SpyTopic when querying for a JNDI Topic. This is using jboss as 4.0.5 w ejb3, and spring 2.0. This behavior just started after I had the first consumer of the durable topic subscribe?

      This output is from the producer:
      java.lang.ClassCastException: org.jboss.mq.SpyTopic
      at org.springframework.jms.core.JmsTemplate102.doCreateProducer(JmsTemplate102.java:195)
      at org.springframework.jms.core.JmsTemplate.createProducer(JmsTemplate.java:844)
      at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:507)
      at org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java:479)
      at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:430)
      at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477)
      at com.ca.data.jms.JMSTextMessageSender.simpleSend(JMSTextMessageSender.java:52)