1 Reply Latest reply on Oct 31, 2012 11:12 AM by Claus Ibsen

    restfull WS to activemq

    Kenneth Messerschmidt Newbie



      i have a restful webservice where i receive an Json input (POST) that i then convert to a javabean. i need to put that bean on a activemq queue anter it has been converted.


      i have attached my kode so far


      does anyone have an idea?




        • 1. Re: restfull WS to activemq
          Claus Ibsen Master

          Do you really want to store serialized Java objects on a JMS queue? Then you have a strong dependency on the class, from the consumer as well, as they would need to have that Class on their classpath etc.


          Maybe you can just store the JSON on the queue instead? Then its even human readable.


          That said you can configure the jmsMessageType=Object on the JMS endpoint to tell Camel to use javax.jms.ObjectMessage as the JMS type.