List of usage examples for org.springframework.jndi JndiTemplate getContext
public Context getContext() throws NamingException
From source file:sk.seges.test.jms.SpringJMSSuite.java
@Override protected void setJNDIContext() { JndiTemplate template = (JndiTemplate) context.getBean("jndiCtx"); try {/*from w ww. j a v a 2 s . c om*/ jndiContext = template.getContext(); } catch (NamingException e) { throw new RuntimeException(e); } }