Hello everybody,

I am looking for the best way how to track or monitor (for example persist
info into database) inbound message (we are a server) such as request (for
example for WS) and our response (or fail).

For example, for the same functionality for outbound messages (where we are
client) we use custom implementation of
EventNotifierBase<ExchangeSendingEvent> for sending and ExchangeSentEvent
for info about received response.

I found JPA implementation for tracing messages
(http://camel.apache.org/tracer-example.html) using tracer. But for now I
don't know what can I expect from it.

Requirements are:
- trace inbound requests (messages) and responses for there (without
complete flow of route - no tracing the route)
- if some error occurs we need trace errors
- it could be based upon "FromEndpoint" - trace message only if
"FromEndpoint" is registered, otherwise no

Camel provides TraceEventHandler, maybe it is one way how to resolve it? For
implementation I would create custom Camel endpoint (as Tracer endpoint)
which encapsulates of persisting JpaTraceEventMessage entity. This component
will route JpaTraceEventMessage  to JPA endpoint only if "FromEndpoint" will
be configured as accepted, otherwise no. For pairing requests and responses
I can use "ExchangeId". But how to resolve last node in route, "ToNode" will
be blank? In Out.Body there will be response, right? 

Or Camel provides some types of events such as
ExchangeSendingEvent/ExchangeSentEvent?

Thank you very much in advice

Tomas



--
View this message in context: 
http://camel.465427.n5.nabble.com/Possibility-to-track-monitor-inbound-outbound-messages-request-response-tp5761583.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to