+ jmsTemplate);
+ }
+
+ public void pingAll(List<String> activeAgentIds) {
+ ReferenceList referenceList = new ReferenceList(activeAgentIds);
+ jmsTemplate.convertAndSend(pingAllDestination, referenceList,
+ new MessagePostProcessor() {
+
+ public Message postProcessMessage(Message message)
+ throws JMSException {
+ message.setJMSCorrelationID(UUID.randomUUID()
+ .toString());
+ message.setStringProperty(JmsAgent.PROPERTY_QUERY,
+ JmsAgent.QUERY_PING_ALL);
+ return message;
+ }
+ });