@Override
public void onNotification(ServerNotification notification)
{
EndpointMessageNotification endpointNotification;
if (notification instanceof EndpointMessageNotification)
{
endpointNotification = (EndpointMessageNotification) notification;
}
else
{
logger.debug(
"*** EndpointMessageNotificationTestListener RECEIVED UNKNOWN NOTIFICATION OF TYPE {}",
notification.getClass().getName());
return;
}
MuleMessage message = endpointNotification.getSource();
String msgType = message.getPayload().getClass().getName();
String correlationId = (String) message.getProperty("MULE_CORRELATION_ID", "?");
// String endpointUri =
// endpointNotification.getEndpoint().getEndpointURI().toString();
String endpointName = endpointNotification.getEndpoint();
String action = notification.getActionName();
String resourceId = notification.getResourceIdentifier();
String timestamp = new Date(notification.getTimestamp()).toString();
if (logger.isDebugEnabled())