return result;
}
private void generateAdvisoryMessage(final ConsumerInfo advisoryTarget, final BrokerClient targetClient,
final Packet payload, final ActiveMQDestination destination) {
ActiveMQObjectMessage advisoryMsg = new ActiveMQObjectMessage();
advisoryMsg.setJMSMessageID(idGen.generateId());
advisoryMsg.setJMSDestination(destination);
advisoryMsg.setExternalMessageId(true);
advisoryMsg.setDeliveryCount(DeliveryMode.NON_PERSISTENT);
try {
advisoryMsg.setObject((Serializable) payload);
}
catch (JMSException e) {
log.warn("caught an exception generating an advisory", e);
}
advisoryMsg.setConsumerNos(new int[]{advisoryTarget.getConsumerNo()});
targetClient.dispatch(advisoryMsg);
}