This is the route:
from(jms:queue:xxx)
...
.process(_write_in_db_)
...
.to(ftp:yyy)
I think I need a global XA Transactional Manager that covers the whole route and commits the changes in DB and Queue only after global commit.
Unfortunatly I didn't found any examples for that case and would appriciate if anybody could say how to do it.