try
{
createConnection(host, port, clientID);
_session = _connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
AMQTopic destination = new AMQTopic(_session.getDefaultTopicExchangeName(), new AMQShortString(commandQueueName));
MessageProducer producer = (MessageProducer) _session.createProducer(destination);
_connection.start();
//TextMessage msg = _session.createTextMessage(tempDestination.getQueueName() + "/Presented to in conjunction with Mahnah Mahnah and the Snowths");
final long startTime = System.currentTimeMillis();
for (int i = 0; i < messageCount; i++)
{
TextMessage msg = _session.createTextMessage(destination.getTopicName() + "/Presented to in conjunction with Mahnah Mahnah and the Snowths: " + i);
//msg.setIntProperty("a",i % 2);
//msg.setIntProperty("b",i % 4);
producer.send(msg);