camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Type converter
Date Mon, 22 Nov 2010 10:42:29 GMT
On Mon, Nov 22, 2010 at 11:33 AM, Remi Malessa <> wrote:
> Hi.
> I have a route when I'm sending from activemq to a Java class (POJO).
> The problem is the message is of type JDom. I've read the type converter
> manual
> but can't find how to use a type converter with a POJO.

You can implement your custom type converter and have Camel pickup and
use it automatic.

Camel in Action book chapter 3 covers this as well.

But if the message was sent as an Object JMS message then you can just
define the parameter as the same type

public void doSomething(JDom dom) {

> Could somebody give me a hint, please ?
> Cheers
> Remi

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message