camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Camel Route causes Serializable class not available to broker
Date Fri, 29 Jan 2010 02:17:55 GMT
Hi,

Which version of camel are you using with ActiveMQ 5.2 and ActiveMQ 5.3?
BTW, you can start the CamelContext out side of the ActiveMQ, in this 
way you can put the object message class into the CamelContext class path.

Willem


SeanOD wrote:
> Moving an application from ActiveMQ 5.2 to ActiveMQ 5.3, I am experiencing
> some difficulties with a camel route.  The route will only work now if I add
> the JMS object message classes to the classpath of ActiveMQ.
> 
> The route was defined for the sole purpose of delaying the re-delivery a
> message back to a queue.
> 
> In ActiveMQ 5.2 we defined as follows:
>   <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring">
>     <route>
>       <from uri="activemq:ReDeliveryQueue"/>
>         <delayer>
>           <delay>10000</delay>
>           <to uri="activemq:DeliveryQueue"/>
>         </delayer>
>     </route>
>   </camelContext>
> 
> I have tried to update this route for use with ActiveMQ 5.3 as such:
> 
>     <camelContext id="camel"  xmlns="http://camel.apache.org/schema/spring">
>         <route>
>             <from uri="activemq:ReDeliveryQueue"/>
>                 <delay>
>                     <constant>5000</constant>
>                 </delay>
>             <to uri="activemq:DeliveryQueue"/>
>         </route>
>     </camelContext>
> 
> In ActiveMQ 5.3 without the message classes in the ActiveMQ classpath I get
> the following error:
> Execution of JMS message listener failed
> org.apache.camel.RuntimeCamelException: Failed to extract body due to:
> javax.jms.JMSException: Failed to build body from content. Serializable
> class not available to broker. Reason: java.lang.ClassNotFoundException:
> 
> I have tried the jmsMapMessage=false parameter as well without any success. 
> Am I now forced to make my message classes available for camel to route and
> delay ?
> 
> Any help, suggestions would be appreciated.
> 


Mime
View raw message