/**
 * 
 */
package org.sistema.spring.mq;

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

/**
 * Main program, starting point of our project
 * 
 * @author Eugenia Pérez Martínez
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beans.xml");

		MessageSender messageSender = (MessageSender) context
				.getBean("messageSender");
		MessageReceiver messageReceiver = (MessageReceiver) context
				.getBean("messageReceiver");

		messageSender.start();
		messageReceiver.start();

	}

}
