private void produceMessages() throws Exception {
TopicConnection connection = createConnection();
TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
Topic topic = session.createTopic(TOPICNAME);
TopicPublisher producer = session.createPublisher(topic);
connection.start();
producer.setDeliveryMode(DeliveryMode.PERSISTENT);
long tStamp = System.currentTimeMillis();
BytesMessage message = session2.createBytesMessage();
for (int i = 1; i <= MSG_COUNT; i++)