List of usage examples for javax.naming InitialContext doLookup
@SuppressWarnings("unchecked") public static <T> T doLookup(String name) throws NamingException
From source file:pl.setblack.airomem.direct.impl.ClassContext.java
private static BeanManager getBeanManager() { return Politician.beatAroundTheBush(() -> (BeanManager) InitialContext.doLookup("java:comp/BeanManager")); }