apache - Audit in Camel Route -
it kind of lengthy description, apologies that.
i have requirement camel route have strict audit requirements of each step, regardless of success or failure.
a typical route is:
endpointa -> queue1 -> transformation -> queue2 -> endpointb
we have audit after each successful commit @ queues. please note there many many routes aboove , each have different queue names.
one solution is:
endpointa -> queue1 -> auditqueue -> transformation -> queue2 -> auditqueue -> endpointb -> auditqueue
but solution looks bad have put auditqueue in main route solve issue.
if change queue1, queue2 etc. topics, have write multiple consumers (i mean multiple routes multiple (like from(queue1), (queue2) etc.) can audit messages in each step. looking re-usable , elegant solution problem?
thanks in advance.
kind regards, sreejesh.
check camel's eventnotifiersupport , exchangesentevent.
Comments
Post a Comment