Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void run() {
- logger.info("creating ctx...");
- final AbstractApplicationContext ctx;
- try {
- ctx = new ClassPathXmlApplicationContext(
- "/garciapl-service-rmi-ctx.xml"
- );
- logger.info("ctx created; registering shutdown hook");
- ctx.registerShutdownHook();
- logger.info("Starting up the application. Stand by... ;)");
- logger.info("Creating MP service...");
- ctx.getBean("userManagerRMI");
- } catch (Throwable e) {
- logger.fatal("exception caught during initialization: ", e);
- System.exit(-1);
- }
- logger.info("app is up and running");
- synchronized (this) {
- try {
- wait();
- } catch (InterruptedException e) {
- logger.error("wait interrupted", e);
- }
- }
- logger.info("Exiting...");
- System.exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement