Fellow Camel riders,

First a little background about what I'm trying to do:

We want to introduce "auditing" (looks similar to BAM) to our camel
infrastructure.  The idea would be that we want to be able to see
exactly what the exchange looks like at certain points in the route.
So, my thinking was that I'd take a "snapshot" of the exchange in some
way and place that on a JMS queue for some other process to pick up
and write the pertinent information into the database.

Now, my question:

How exactly would you guys go about it?  I could introduce a new data
structure that I can put on the queue.  Or, is there perhaps something
already there that I can lean on.  For example, could I do:

exchange.getIn().setBody(exchange.copy());

Would that make it through JMS correctly?  Meaning, could I have
another route on the other side of my queue that does:

Exchange original = exchange.getIn().getBody(Exchange.class);

Would that work?

Perhaps I'm going about this all wrong? :)

Any advice would be greatly appreciated.

Thanks,

James

Reply via email to