Example usage for javax.naming InitialContext doLookup

List of usage examples for javax.naming InitialContext doLookup

Introduction

In this page you can find the example usage for javax.naming InitialContext doLookup.

Prototype

@SuppressWarnings("unchecked")
public static <T> T doLookup(String name) throws NamingException 

Source Link

Document

A static method to retrieve the named object.

Usage

From source file:pl.setblack.airomem.direct.impl.ClassContext.java

private static BeanManager getBeanManager() {
    return Politician.beatAroundTheBush(() -> (BeanManager) InitialContext.doLookup("java:comp/BeanManager"));

}