5 Replies Latest reply on Oct 8, 2014 1:50 PM by codeturner

    Caused by: java.lang.ClassCastException: org.hornetq.jms.client.HornetQQueue cannot be cast to javax.jms.Queue

    tbossini

      hI,

       

      I am newbie at HornetQ and surely I forgot something easy to solve. I am going to explain briefly what I want to do.

       

      1. I have a webservice

      2. The webservice will send a JmsMessage with the message received.

       

      I've executed ok the examples provided by HornetQ but when I integrate inside my webservice I got the following error accessing jndi.

       

      INFO  [STDOUT] Caused by: java.lang.ClassCastException: org.hornetq.jms.client.HornetQQueue cannot be cast to javax.jms.Queue

       

      I took this code from an example that works ok.

       

      Can anyone give me any idea?Is there any example to use?Any tip that can help me?

       

      I am using Jboss AS6 and CXF.2.3.3

       

      Thanks in advance