Package org.apache.geronimo.gjndi

Examples of org.apache.geronimo.gjndi.GlobalContextGBean.bind()


    public void testBindUnbind() throws Exception {
        System.setProperty("java.naming.factory.initial", "org.apache.xbean.naming.global.GlobalContextManager");
        GlobalContextGBean globalContext = new GlobalContextGBean(null);
        GlobalContextManager.setGlobalContext(globalContext);
        DeepBindableContext context = new DeepBindableContext("openejb", false, true, false, false);
        globalContext.bind("openejb", context);

        Context contextWrapper = context.newJndiFactory().createRootContext();
        testBindUnbind(context, contextWrapper, "openejb/foo/bar", "");
        testBindUnbind(context, contextWrapper, "java:openejb/foo/bar", "java:");
View Full Code Here


    public void testBindUnbind() throws Exception {
        System.setProperty("java.naming.factory.initial", "org.apache.xbean.naming.global.GlobalContextManager");
        GlobalContextGBean globalContext = new GlobalContextGBean(null);
        GlobalContextManager.setGlobalContext(globalContext);
        DeepBindableContext context = new DeepBindableContext("openejb", false, true, false, false);
        globalContext.bind("openejb", context);

        Context contextWrapper = context.newJndiFactory().createRootContext();
        testBindUnbind(context, contextWrapper, "openejb/foo/bar", "");
        testBindUnbind(context, contextWrapper, "java:openejb/foo/bar", "java:");
View Full Code Here

    public void testBindUnbind() throws Exception {
        System.setProperty("java.naming.factory.initial", "org.apache.xbean.naming.global.GlobalContextManager");
        GlobalContextGBean globalContext = new GlobalContextGBean(null);
        GlobalContextManager.setGlobalContext(globalContext);
        DeepBindableContext context = new DeepBindableContext("openejb", false, true, false, false);
        globalContext.bind("openejb", context);

        Context contextWrapper = context.newJndiFactory().createRootContext();
        testBindUnbind(context, contextWrapper, "openejb/foo/bar", "");
        testBindUnbind(context, contextWrapper, "java:openejb/foo/bar", "java:");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.