Package org.apache.geronimo.connector.deployment.dconfigbean

Examples of org.apache.geronimo.connector.deployment.dconfigbean.AdminObjectInstance


        //admin objects
        DDBean[] adminObjectdds = resourceAdapterdd.getChildBean(resourceAdapterDConfigBean.getXpaths()[2]);
        assertEquals(1, adminObjectdds.length);
        AdminObjectDConfigBean adminObjectDConfigBean = (AdminObjectDConfigBean)resourceAdapterDConfigBean.getDConfigBean(adminObjectdds[0]);
        assertNotNull(adminObjectDConfigBean);
        AdminObjectInstance adminObjectInstance1 = new AdminObjectInstance();
        adminObjectDConfigBean.setAdminObjectInstance(new AdminObjectInstance[] {adminObjectInstance1});
        ConfigPropertySettings adminObjectSetting1 = adminObjectInstance1.getConfigProperty()[0];
        adminObjectSetting1.setConfigPropertyValue("TestAOValue1");

        //add a second admin object in first position
        AdminObjectInstance adminObjectInstance2 = new AdminObjectInstance();
        adminObjectDConfigBean.setAdminObjectInstance(new AdminObjectInstance[] {adminObjectInstance2, adminObjectInstance1});
        ConfigPropertySettings adminObjectSetting2 = adminObjectInstance2.getConfigProperty()[0];
        adminObjectSetting2.setConfigPropertyValue("TestAOValue2");

        //outbound
        DDBean[] connectionDefinitiondds = resourceAdapterdd.getChildBean(resourceAdapterDConfigBean.getXpaths()[1]);
        assertEquals(2, connectionDefinitiondds.length);
View Full Code Here


        //admin objects
        DDBean[] adminObjectdds = resourceAdapterdd.getChildBean(resourceAdapterDConfigBean.getXpaths()[2]);
        assertEquals(1, adminObjectdds.length);
        AdminObjectDConfigBean adminObjectDConfigBean = (AdminObjectDConfigBean)resourceAdapterDConfigBean.getDConfigBean(adminObjectdds[0]);
        assertNotNull(adminObjectDConfigBean);
        AdminObjectInstance adminObjectInstance1 = new AdminObjectInstance();
        adminObjectDConfigBean.setAdminObjectInstance(new AdminObjectInstance[] {adminObjectInstance1});
        ConfigPropertySettings adminObjectSetting1 = adminObjectInstance1.getConfigProperty()[0];
        adminObjectSetting1.setConfigPropertyValue("TestAOValue1");

        //add a second admin object in first position
        AdminObjectInstance adminObjectInstance2 = new AdminObjectInstance();
        adminObjectDConfigBean.setAdminObjectInstance(new AdminObjectInstance[] {adminObjectInstance2, adminObjectInstance1});
        ConfigPropertySettings adminObjectSetting2 = adminObjectInstance2.getConfigProperty()[0];
        adminObjectSetting2.setConfigPropertyValue("TestAOValue2");

        //outbound
        DDBean[] connectionDefinitiondds = resourceAdapterdd.getChildBean(resourceAdapterDConfigBean.getXpaths()[1]);
        assertEquals(2, connectionDefinitiondds.length);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.connector.deployment.dconfigbean.AdminObjectInstance

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.