2008/6/16 Seon Lee <[EMAIL PROTECTED]>:
>
> Ive been looking for an easy way to debug the header contents on messages
> passed around in Camel. The ideas in this thread for a new feature are
> great.
>
> Until then, what is the best way to dump/debug message headers currently
> with release 1.3 of Camel? I poked around and it looks like I could create a
> custom component that performs this logging. Are there other alternatives?
I often modify a route like this...
from(...)
to("log:Foo").
to(...);
to add an extra
from(...)
to("log:Foo").
to(...);
route to add more logging. Or turn debug logging high. Or sometimes
when things are wacky I add a custom processor...
from(...)
process(new Processor() {
public void process(Exchange) {
// set a break point here!
}
).
to(...);
So I can easily set a breakpoint and look at the exchange / message /
headers / body etc.
We need to make this a bit simpler though!
FWIW I've an experimental debugger framework...
http://activemq.apache.org/camel/debugger.html
which can be enabled which then adds an interceptor which can record
the exchanges passed into each step of a route and can trace them etc.
Its kinda early days and could use some love; but its a kinda start
along the road to having a better framework for diagnosing things
going wrong mid-route etc.
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com