Examples of ProducerBean


Examples of com.aliyun.openservices.ons.api.bean.ProducerBean

public class Producer {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("producer.xml");
        ProducerBean producer = (ProducerBean) ctx.getBean("producer");
        SendResult sendResult = producer.send(new Message("TopicTest", "tag", "Hello".getBytes()));
        System.out.println(sendResult);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.