createEndpointStats(container, endpoint);
}
}
protected void onExchangeSent(ExchangeEvent event) {
MessageExchange me = event.getExchange();
// This is a new exchange sent by a consumer
if (me.getStatus() == ExchangeStatus.ACTIVE
&& me.getRole() == Role.CONSUMER
&& me.getMessage("out") == null
&& me.getFault() == null
&& me instanceof MessageExchangeImpl) {
MessageExchangeImpl mei = (MessageExchangeImpl) me;
String source = (String) me.getProperty(JbiConstants.SENDER_ENDPOINT);
if (source == null) {
source = mei.getSourceId().getName();
ComponentStats stats = componentStats.get(source);
stats.incrementOutbound();
} else {