camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Type converter
Date Mon, 22 Nov 2010 10:42:29 GMT
On Mon, Nov 22, 2010 at 11:33 AM, Remi Malessa <rem@llgc.org.uk> 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
> http://camel.apache.org/type-converter.html 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.
http://camel.apache.org/type-converter.html

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
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message