import com.taobao.metamorphosis.utils.ZkUtils.ZKConfig;
public class MessageSenderTest {
public static void main(String[] args) throws Exception {
MetaClientConfig config = new MetaClientConfig();
ZKConfig zkConfig = new ZKConfig("10.249.197.121", 30000, 30000, 5000);
config.setZkConfig(zkConfig);
MetaMessageSessionFactory factory = new MetaMessageSessionFactory(config);
MessageProducer producer = factory.createProducer(false);
String topic = "test";
producer.publish(topic);