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?
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)