new BrokerSideReceiverHandler(), cfg);
}
}
public void send(String key, Message message) {
Id id = idFactory.buildId(key);
log.debug("Sending message with id: " + id.toStringFull());
final Counter counter = new Counter(1);
this.endpoint.route(id, message, null, new DeliveryNotification() {
public void sendFailed(MessageReceipt arg0, Exception arg1) {
log.warn("Failed to send the message");