Hi Daniel, Here is my idea on how to do the second part (availability).
Synapse sequence has an onError sequence associated with it, I think you can use that to get a notification on a failure of a service. You might need to write another custom mediator if you need to do a specific task on the failure. Here is the configuration for that; <definitions xmlns="http://ws.apache.org/ns/synapse"> <sequence name="main" onError="notifyFailure"> <send><endpoint><address uri="$ACTUAL_SERVICE_URL"/></endpoint></send> </sequence> <sequence name="notifyFailure"> <!-- your custom mediator should go in here and this will be invoked only if there is some error in the sending process. Most probably, to verify that this error was due to the not responding of the service, you will need to check the cause of the error inside your custom meditor which can be achieved by checking the error message as follows String errorMessage = synCtx.getProperty(SynapseConstants.ERROR_MESSAGE); if (errorMessage.equals($SPECIFIC_ERROR)) { // task on notification} In the same way as the ERROR_MESSAGE you have the access to the ERROR_CODE and the ERROR_DETAIL as well. --> </sequence> </definitions> Hope this will be helpful. Thanks, Ruwan On 10/8/07, Daniel Pereda <[EMAIL PROTECTED]> wrote: > > Hello!, > I am working in a project that need to monitor services used in a > composed service, to determinate certain QoS aggregations metrics for > the composed service. Synapse seems to be what i'm looking for. The QoS > metrics necessaries in my project are response time and availability in > the first time. My idea is create a custom mediator and for each metric > take a different action, in the response time case generate one mark > when receive the invoking message and other mark when receiving the > response message. The mark could be for example a timestamp entry in a > table on a database. > But i have problems with availability, how can obtain a notification > when a service is not responding? > > Any help is welcome. > > Regards. > > Dan. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform"
