checkMessage(clientId, TOPIC);
messagingClient.stop(true);
}
private void sendMessage(String jndiName) throws Exception {
JMSManager jmsManager = new JMSManager(properties);
TextMessage message = jmsManager.createTextMessage(jndiName, messageText);
message.setStringProperty(propertyName, propertyValue);
jmsManager.send(jndiName, message);
jmsManager.stop(jndiName);
jmsManager.close();
}