List of usage examples for org.springframework.context ApplicationContext wait
public final void wait() throws InterruptedException
From source file:org.jolokia.support.spring.sample.Application.java
public static void main(String[] args) throws InterruptedException { System.out.println("Starting up Spring sample application"); ApplicationContext ctx = new ClassPathXmlApplicationContext("/applicationContext.xml"); synchronized (ctx) { ctx.wait(); }/*from w w w .ja v a 2 s .com*/ }