Quantcast
Viewing all articles
Browse latest Browse all 5648

Problem with inserting database from camel-context.xml

hi good day, I'm new to all this.

i have the following

<split parallelProcessing="true" streaming="true">
<tokenize token="\n" group="1"/>
<unmarshal><csv/></unmarshal>
<transform>
<simple>${body[0]}</simple>
</transform>
<log message="${body}"/>
<to uri="sql:INSERT INTO prueba(id, nombre, sex, num)
VALUES(#,#,#,#)"/>
......
......

which works correctly when fields of my database are TEXT, but if I have a
field, for example, ID int, not performing insert,

any solution within the camel-context.xml or have to resort to a java class
that I do the transformation?

Viewing all articles
Browse latest Browse all 5648

Trending Articles