Hi Could be a bug/problem in Camel. Could you create a JIRA ticket for this so we wont forget to look into it and have it working out-of-the-box.
It should in my opinion be a ref for a spring id bean as you already have tried. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Scott England-Sullivan [mailto:[EMAIL PROTECTED] Sent: 18. august 2008 19:34 To: [email protected] Subject: jms messageConverter IllegalArgumentException 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.
