public void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext) { //we just log the failed recipient here logOnChildEndpointFail(endpoint, synMessageContext); String msg = ""; if (log.isDebugEnabled()) { msg = "Recipient List endpoint : " + (getName() != null ? getName() : SynapseConstants.ANONYMOUS_ENDPOINT) + " - one of the recipients encounterd an error while sending the message "; log.debug(msg); } informFailure(synMessageContext,SynapseConstants.ENDPOINT_FO_NONE_READY, msg); }
public void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext) { //we just log the failed recipient here logOnChildEndpointFail(endpoint, synMessageContext); String msg = ""; if (log.isDebugEnabled()) { msg = "Recipient List endpoint : " + (getName() != null ? getName() : SynapseConstants.ANONYMOUS_ENDPOINT) + " - one of the recipients encounterd an error while sending the message "; log.debug(msg); } informFailure(synMessageContext,SynapseConstants.ENDPOINT_RL_NONE_READY, msg); }
public void sendMessage(MessageContext synCtx) { logSetter(); if (log.isDebugEnabled()) { log.debug("Sending using Recipient List " + toString()); } if (getContext().isState(EndpointContext.ST_OFF)) { informFailure(synCtx, SynapseConstants.ENDPOINT_RL_NONE_READY, "RecipientList endpoint : " + getName() != null ? getName() : SynapseConstants.ANONYMOUS_ENDPOINT + " - is inactive"); return; } List<Endpoint> children = getChildren(); //Service child endpoints if (children != null && !children.isEmpty()) { sendToEndpointList(synCtx, children); } //Service member elements if specified else if (members != null && !members.isEmpty()) { sendToApplicationMembers(synCtx); } else if (dynamicEnpointSet != null) { sendToDynamicMembers(synCtx); } else { String msg = "No child endpoints nor member elements available"; log.error(msg); throw new SynapseException(msg); } }
" of Recipient List endpoint " + (getName() != null ? getName() : SynapseConstants.ANONYMOUS_ENDPOINT) + " encountered an error while sending the message"; log.warn(msg); continue; //continue sending message to rest of the child endpoints. (getName() != null ? getName() : SynapseConstants.ANONYMOUS_ENDPOINT) + " - no ready child endpoints"; log.warn(msg);
recipientListEndpoint.getDynamicEndpointSet() == null) { String msg = "A RecipientListEndpoint must have child/member elements, but the " + "RecipientListEndpoint " + "'" + recipientListEndpoint.getName() + "' " + "does not have any child/member/dynamic endpoint elements."; log.error(msg);
String msg = "Invalid Synapse configuration.\n" + "A RecipientListEndpoint must have child/member elements, but the RecipientListEndpoint " + "'" + recipientListEndpoint.getName() + "' does not have any child/member/dynamic endpoint elements."; log.error(msg); throw new SynapseException(msg);