public static void main(String[] args) throws Throwable {
// 启动dragoon client
// startDragoon();
// logger.info("INFO ## the dragoon is start now ......");
final OtterController controller = OtterContextLocator.getOtterController();
controller.start();
try {
logger.info("INFO ## the otter server is running now ......");
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
try {
logger.info("INFO ## stop the otter server");
controller.stop();
} catch (Throwable e) {
logger.warn("WARN ##something goes wrong when stopping Otter Server:\n{}",
ExceptionUtils.getFullStackTrace(e));
} finally {
logger.info("INFO ## otter server is down.");