Package org.apache.xbean.naming.context

Examples of org.apache.xbean.naming.context.WritableContext.bind()


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

        Context contextWrapper = context.newContextWrapper();
        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.