Package winstone.jndi

Examples of winstone.jndi.WinstoneContext


    public Context getInitialContext(Hashtable env) throws NamingException {
        synchronized (lock) {
            if (rootContext == null) {
                Object lock = new Boolean(true);
                rootContext = new WinstoneContext(env, null, "java:", lock);
                WinstoneContext compCtx = new WinstoneContext(env, rootContext, "java:/comp", lock);
                WinstoneContext envCtx = new WinstoneContext(env, compCtx, "java:/comp/env", lock);
                rootContext.rebind("java:/comp", compCtx);
                compCtx.rebind("env", envCtx);
            }
        }
        return (Context) rootContext.lookup("java:/comp/env");
View Full Code Here

TOP

Related Classes of winstone.jndi.WinstoneContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.