Hi,
May be I asked this question before but could not get any solid answer, so please all the gurus, try to throw your ideas (any example or link will be appreciated...)
Question: I need to configure some alert messages for my wso2 in case of any SLA
violation.
Eg:- WsO2 proxy should send EMAIL to configured mail ids if it is not
getting response from business component with in a predefined number of
seconds.
Is it possible to configure this type of alerts in wso2.
Please give any links/examples if u have any idea.
Thanks in advance
-Harpreet
This is straight forward if
This is straight forward if you spend some time on the documentation. In case of an error ( time out, connection refused) when sending the message out, ESB can be configured to execute a fault sequence. What you need to do is to define a mail endpoint within this fault sequence, so that it'll send an alert email in case of an error.
http://wso2.org/project/esb/java/3.0.0/docs/samples/transport_samples.html#Sample255
http://wso2.org/project/esb/java/3.0.0/docs/samples/transport_samples.html#Sample256
Rajika
I know about fault sequence
I know about fault sequence & mail transport but how to get the the response time of a service request ?
Maybe a custom mediator setting properties
Have you tried a custom mediator to capture the current time before hitting your end-point, set a property on the message context, and then another comparing to the timestamp in pre-mediate out sequence?