Jim Talbut wrote:
How can I capture (to log to a database) the RESPONSE_CODE and
PROTOCOL_HEADERS of a response message?
I'm working with a modified version of the LoggingOutInterceptor,
which captures the body but not the headers.
Are these values only available at certain phases of the outbound
processing?
Is there a list of what is available when somewhere?
Also, how can I get a correlation ID to tie together a message on the
inbound and outbound interceptors?
I was hoping the message.getId() would provide something, but it
doesn't seem to (even if I set it in the inbound interceptor).
I've been playing with this further, trying to use message.get(
message.INVOCATION_CONTEXT ), but this is always null on the outbound
interceptor.
I thought that was possibly because I needed the inbound message, but I
can't find any way to access that.
Any ideas?
Thanks.
Jim