On Thu, Dec 9, 2010 at 3:15 PM, Remi Malessa <[email protected]> wrote: > Hi . > > I've created a String to org.jdom.Document and org.jdom.Document to String > type converter. > The trouble is the org.jdom.Document doesn't seem to work. > > The converter code seems to be fine , as I tested it using the main method > and it returns what I need. > But whether I output a message with org.jdom.Document body to a > activemq:queue ot try to force conversion > by <convertBodyTo type="java.lang.String"/> I don't get the same result. > > Instead , I get [Document: No DOCTYPE declaration, Root is [Element: > <project/>]]] which looks rather like an output > of org.jdom.Document.toString() method. > > Any idea, why or how to make it use the converter ? >
How do you register the converter? See more here http://camel.apache.org/type-converter.html Or chapter 3 in the Camel book > Thanks > Remi > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
