910111213141516171819
try { System.out.println("Loading Spring Context..."); Object obj = new ClassPathXmlApplicationContext("app-context.xml"); System.out.println("Spring Context Loaded"); synchronized (obj) { obj.wait(); } } catch (Exception e) { e.printStackTrace(); } }