MyXid xid1 = new MyXid();
XAResource resource = xaSession.getXAResource();
resource.start(xid1, XAResource.TMNOFLAGS);
TopicSession session = xaSession.getTopicSession();
TopicSubscriber subscriber = session.createSubscriber(topic);
connection.start();
TopicPublisher publisher = session.createPublisher(topic);
Message message = session.createTextMessage();
// Publish a message using "AutoAcknowledge"