package com.rndchina.aisin.chat.client;

import org.apache.mina.core.service.IoAcceptor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringMain {

	public static void main(String[] args) throws Exception {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		IoAcceptor acceptor = (IoAcceptor) ctx.getBean("ioAcceptor");
		System.out
				.println("Calculator server has started up.... Local Address: "
						+ acceptor.getLocalAddress().toString()
						+ " Default Local Address: "
						+ acceptor.getDefaultLocalAddress().toString());
	}
}
