WSO2 Alert Question! ( To all the WSO2 Gurus.... )

hdhanoa.westernasset.com's picture

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

rajika's picture

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

hdhanoa.westernasset.com's picture

I know about fault sequence

I know about fault sequence & mail transport but how to get the the response time of a service request ?

kreveksa's picture

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?

Hot Topic
Hot
Topic

Google Gadgets are a nice way to develop user interfaces for distributed services. The fact that they can be hosted anywhere over a network, not necessarily in the very portal server they eventually run in makes them re-usable and allows users to quickly...

Latest Webinar
In this webinar we'll share the range of concerns we've heard from the industry, and survey some of the new and sometimes subtle types of lock-in associated with cloud technologies.
Wednesday, 8 September, 10.00 AM (PDT)