Hi Claus ! I am more or less new in Camel .. I would like to do something
similar but with files..
I mean.. I have a XML file like:
<Orders>
<order>
<id>1</id>
<desc>desc 1</desc>
</order>
<order>
<id>2</id>
<desc>dec 2</desc>
</order>
</Orders>
and i want to split it in order to store in a database in a single
transaction.. I mean.. if some Order is wrong during the process no 'order'
of this XML file will be store in the database.. instead of that i would
like to throw an exception or st like that..
Do u thing is enough with this or i need to configure anything in my
database configuration ?
I am a bit lost.
from("direct:myRoute").transacted().split(xpath("Orders/order")).unmarshall(dataFormat).process(My
Processor()).to("jta:com.model.Orders?usePersists=true")
It would be great if someone can help me, thanks!!
--
View this message in context:
http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5796774.html
Sent from the Camel - Users mailing list archive at Nabble.com.