Package jms

Source Code of jms.JmsDemo

package jms;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jms.core.JmsTemplate;

public class JmsDemo {

  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("jms/config.xml");
    JmsTemplate template = context.getBean(JmsTemplate.class);
    template.convertAndSend("samples.queue", "Hello JMS");
  }

}
TOP

Related Classes of jms.JmsDemo

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.