public class AsyncProducer {
public static void main(final String[] args) throws Exception {
// New session factory,ǿ�ҽ���ʹ�õ���
final MessageSessionFactory sessionFactory = new MetaMessageSessionFactory(initMetaConfig());
// create producer,ǿ�ҽ���ʹ�õ���
final MessageProducer producer = sessionFactory.createProducer();
// publish topic
final String topic = "slave-test";
producer.publish(topic);
final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));