Package org.mortbay.jndi

Examples of org.mortbay.jndi.NamingContext


        {
            initCtx.lookup( "java:comp" );
        }
        catch ( NameNotFoundException e )
        {
            Util.bind( initCtx, "java:comp", new NamingContext() );
            NamingContext compCtx = (NamingContext) initCtx.lookup( "java:comp" );
            compCtx.setNameParser( new InitialContextFactory.DefaultParser() );
            log.info( "No JNDI java:comp namespace found; creating it," );
            // Context envCtx = compCtx.createSubcontext( "env" );
            // System.out.println( envCtx );
        }
        log.info( "Initialized JNDI java:comp namespace.=" + contextFactoryClass );
View Full Code Here

TOP

Related Classes of org.mortbay.jndi.NamingContext

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.