Examples of addResourceEnvRef()


Examples of org.apache.catalina.deploy.NamingResources.addResourceEnvRef()

                .addLifecycleListener(new org.apache.catalina.storeconfig.InfoLifecycleListener());
        NamingResources resources = standardContext.getNamingResources();
        ContextResourceEnvRef ref = new ContextResourceEnvRef();
        ref.setName("foo");
        ref.setType("type");
        resources.addResourceEnvRef(ref);
        ContextResourceLink res = new ContextResourceLink();
        res.setName("jdbc/Barlocal");
        res.setType("javax.sql.DataSource");
        res.setGlobal("jdbc/Bar");
        resources.addResourceLink(res);
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.addResourceEnvRef()

        NamingResources resources = new NamingResources();
        ContextResourceEnvRef ref = new ContextResourceEnvRef();
        ref.setName("peter");
        ref.setType("type");
        resources.addResourceEnvRef(ref);
        String aspectedResult = "<GlobalNamingResources>" + LF.LINE_SEPARATOR
                + "  <ResourceEnvRef" + LF.LINE_SEPARATOR
                + "    name=\"peter\"" + LF.LINE_SEPARATOR
                + "    type=\"type\"/>" + LF.LINE_SEPARATOR
                + "</GlobalNamingResources>" + LF.LINE_SEPARATOR;
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.addResourceEnvRef()

        NamingResources resources = new NamingResources();
        ContextResourceEnvRef ref = new ContextResourceEnvRef();
        ref.setName("peter");
        ref.setType("type");
        resources.addResourceEnvRef(ref);
        String aspectedResult = "<GlobalNamingResources>" + LF.LINE_SEPARATOR
                + "  <ResourceEnvRef" + LF.LINE_SEPARATOR
                + "    name=\"peter\"" + LF.LINE_SEPARATOR
                + "    type=\"type\"/>" + LF.LINE_SEPARATOR
                + "</GlobalNamingResources>" + LF.LINE_SEPARATOR;
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.addResourceEnvRef()

                .addLifecycleListener(new org.apache.catalina.storeconfig.InfoLifecycleListener());
        NamingResources resources = standardContext.getNamingResources();
        ContextResourceEnvRef ref = new ContextResourceEnvRef();
        ref.setName("foo");
        ref.setType("type");
        resources.addResourceEnvRef(ref);
        ContextResourceLink res = new ContextResourceLink();
        res.setName("jdbc/Barlocal");
        res.setType("javax.sql.DataSource");
        res.setGlobal("jdbc/Bar");
        resources.addResourceLink(res);
View Full Code Here

Examples of org.apache.geronimo.naming.java.ComponentContextBuilder.addResourceEnvRef()


    public void testLocalLookup() throws Exception {
        JMXReferenceFactory referenceFactory = new JMXReferenceFactory();
        ComponentContextBuilder builder = new ComponentContextBuilder(referenceFactory);
        builder.addResourceEnvRef("resourceenvref", MockAdminObject.class, new RefAdapter() {
            public XmlObject getXmlObject() {
                return null;
            }

            public void setXmlObject(XmlObject xmlObject) {
View Full Code Here

Examples of org.apache.geronimo.naming.java.ComponentContextBuilder.addResourceEnvRef()


    public void testLocalLookup() throws Exception {
        JMXReferenceFactory referenceFactory = new JMXReferenceFactory();
        ComponentContextBuilder builder = new ComponentContextBuilder(referenceFactory);
        builder.addResourceEnvRef("resourceenvref", MockAdminObject.class, new RefAdapter() {
            public XmlObject getXmlObject() {
                return null;
            }

            public void setXmlObject(XmlObject xmlObject) {
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.