final String topic = "meta-test";
final XAMessageSessionFactory xasf = getXAMessageSessionFactory();
// create XA producer,it should be used as a singleton instance.
XAMessageProducer xaMessageProducer = xasf.createXAProducer();
// publish topic
xaMessageProducer.publish(topic);
// create XA datasource,reuse it.
final XADataSource xads = getXADataSource();
final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line = null;