What argument do you use to populate the messageConverter param of the jms
component?

I have tried the following:
.to("jms:topic:activemq.test.provider.topic?messageConverter=<beanName>")
.to("jms:topic:activemq.test.provider.topic?messageConverter=<className>")

which leaves me with an IllegalArgumentException: 
Caused by: java.lang.IllegalArgumentException: Could not convert
<beanName>/<className> to
org.springframework.jms.support.converter.MessageConverter
        at
org.apache.camel.util.IntrospectionSupport.convert(IntrospectionSupport.java:218)
        at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:194)
        at
org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:167)
        at
org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:187)
        at
org.apache.camel.component.jms.JmsComponent.createEndpoint(JmsComponent.java:403)
        at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:81)
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:270)
        ... 40 more

I also tried to assign it directly to the JmsComponent using both the bean
config in the camel-context.xml and programmatically in the
RouteBuilder.configure() method.  It is still never called.

Your help is greatly appreciated.

Thanks
Scott ES
-- 
View this message in context: 
http://www.nabble.com/jms-messageConverter-IllegalArgumentException-tp19035628s22882p19035628.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to