Boolean sync = (Boolean) me.getProperty(JbiConstants.SEND_SYNC);
return sync != null && sync.booleanValue();
}
protected boolean isClustered(MessageExchange me) {
MessageExchangeImpl mei = (MessageExchangeImpl) me;
if (mei.getDestinationId() == null) {
ServiceEndpoint se = me.getEndpoint();
if (se instanceof InternalEndpoint) {
return ((InternalEndpoint) se).isClustered();
// Unknown: assume this is not clustered
} else {
return false;
}
} else {
String destination = mei.getDestinationId().getContainerName();
String source = mei.getSourceId().getContainerName();
return !source.equals(destination);
}
}