Package com.fly.test.activemqTestSend

Source Code of com.fly.test.activemqTestSend.testSend

package com.fly.test.activemqTestSend;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.fly.test.activemqTest.ConsumerService;
import com.fly.test.activemqTest.ProducerService;

public class testSend {
  private static ApplicationContext appContext = new ClassPathXmlApplicationContext("jms.xml");
  
  private static void send(){
    ProducerService producerService = (ProducerService)appContext.getBean("producerService");
    producerService.send();
  }
  private static void receive(){
    ConsumerService consumerService = (ConsumerService)appContext.getBean("consumerService");
    consumerService.receive();
  }
}
TOP

Related Classes of com.fly.test.activemqTestSend.testSend

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.