You need to add camel-xstream JAR to the classpath, and its associated
JARs (eg XStream itself and what it depends upon).

The error message has been improved in future releases of Camel to
better tell you this.


On Fri, Mar 4, 2011 at 9:36 AM, Kovacs Zsolt <[email protected]> wrote:
> Hi,
>
> I tried to marshal to XML a JDBC query like this:
>        from("timer://foo?period=
> 10000")
>          .setBody(constant("SELECT * FROM ..."))
>          .to(testdb)
>          .split(body());
>          .marshal().xstream("UTF-8");
>
>  But Camel fail to create the route on the last line: *because of dataFormat
> must be specified*.
>
> I can't find any help on this issue (I tried without "UTF-8" as well).
>
> Thanks,
> Zsolt
>



-- 
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/

Reply via email to