Package org.apache.geronimo.jee.connector

Examples of org.apache.geronimo.jee.connector.ConfigPropertySetting


        Adminobject adminobject = connectorFactory.createAdminobject();
        adminobject.setAdminobjectClass("resource-connector-adminobject-adminobjectclass");
        adminobject.setAdminobjectInterface("resource-connector-adminobject-adminobjectinterface");
        AdminobjectInstance adminobjectInstance = connectorFactory.createAdminobjectInstance();
        adminobjectInstance.setMessageDestinationName("resource-connector-adminobject-instance-messagedestinationname");
        ConfigPropertySetting configPropertySetting = connectorFactory.createConfigPropertySetting();
        configPropertySetting.setName("resource-connector-adminobject-instance-name");
        configPropertySetting.setValue("resource-connector-adminobject-instance-value");
        adminobjectInstance.getConfigPropertySetting().add(configPropertySetting);
        adminobject.getAdminobjectInstance().add(adminobjectInstance);
        connector.getAdminobject().add(adminobject);
        environment = deploymentFactory.createEnvironment();
        artifact = deploymentFactory.createArtifact();
        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        dependencies = deploymentFactory.createDependencies();
        dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
        dependency.setVersion("2.2-SNAPSHOT");
        dependency.setType("car");
        dependencies.getDependency().add(dependency);
        environment.setDependencies(dependencies);
        connector.setEnvironment(environment);
        Resourceadapter resourceadapter = connectorFactory.createResourceadapter();
        ResourceadapterInstance resourceadapterInstance = connectorFactory.createResourceadapterInstance();
        resourceadapterInstance.setResourceadapterName("resource-connector-resourceadapter-name");
        GbeanLocator gbeanLocator = namingFactory.createGbeanLocator();
        gbeanLocator.setGbeanLink("connector-resourceadapter-workmanager-gbeanlink");
        namingPattern = namingFactory.createPattern();
        namingPattern.setArtifactId("connector-resourceadapter-workmanager-pattern-artifactid");
        namingPattern.setGroupId("connector-resourceadapter-workmanager-pattern-groupid");
        namingPattern.setModule("connector-resourceadapter-workmanager-pattern-module");
        namingPattern.setName("connector-resourceadapter-workmanager-pattern-name");
        namingPattern.setVersion("connector-resourceadapter-workmanager-pattern-version");
        gbeanLocator.setPattern(namingPattern);
        resourceadapterInstance.setWorkmanager(gbeanLocator);
        configPropertySetting = connectorFactory.createConfigPropertySetting();
        configPropertySetting.setName("resource-connector-resourceadapter-instance-name");
        configPropertySetting.setValue("resource-connector-resourceadapter-instance-value");       
        resourceadapterInstance.getConfigPropertySetting().add(configPropertySetting);
        resourceadapter.setResourceadapterInstance(resourceadapterInstance);
        OutboundResourceadapter outboundResourceadapter = connectorFactory.createOutboundResourceadapter();
        ConnectionDefinition connectionDefinition = connectorFactory.createConnectionDefinition();
        connectionDefinition.setConnectionfactoryInterface("resource-connector-resourceadapter-outbound-connectiondefinition-interface");
        ConnectiondefinitionInstance connectionDefinitionInstance = connectorFactory.createConnectiondefinitionInstance();
        connectionDefinitionInstance.setName("resource-connector-resourceadapter-outbound-connectiondefinition-instance-name");
        connectionDefinitionInstance.getImplementedInterface().add("resource-connector-resourceadapter-outbound-connectiondefinition-instance-implementedinterface");
        Connectionmanager connectionManager = connectorFactory.createConnectionmanager();
        Empty empty = connectorFactory.createEmpty();
        connectionManager.setContainerManagedSecurity(empty);
        connectionManager.setLocalTransaction(empty);
        connectionManager.setNoPool(empty);
        connectionManager.setNoTransaction(empty);
        connectionManager.setTransactionLog(empty);
        Partitionedpool partitionedPool = connectorFactory.createPartitionedpool();
        partitionedPool.setBlockingTimeoutMilliseconds(new Integer(0));
        partitionedPool.setIdleTimeoutMinutes(new Integer(0));
        partitionedPool.setMatchAll(empty);
        partitionedPool.setMatchOne(empty);
        partitionedPool.setMaxSize(new Integer(0));
        partitionedPool.setMinSize(new Integer(0));
        partitionedPool.setPartitionByConnectionrequestinfo(empty);
        partitionedPool.setPartitionBySubject(empty);
        partitionedPool.setSelectOneAssumeMatch(empty);
        connectionManager.setPartitionedPool(partitionedPool);
        Singlepool singlePool = connectorFactory.createSinglepool();
        singlePool.setBlockingTimeoutMilliseconds(new Integer(0));
        singlePool.setIdleTimeoutMinutes(new Integer(0));
        singlePool.setMatchAll(empty);
        singlePool.setMatchOne(empty);
        singlePool.setMaxSize(new Integer(0));
        singlePool.setMinSize(new Integer(0));
        singlePool.setSelectOneAssumeMatch(empty);
        connectionManager.setPartitionedPool(partitionedPool);
        connectionManager.setSinglePool(singlePool);
        Xatransaction xaTransaction = connectorFactory.createXatransaction();
        xaTransaction.setThreadCaching(empty);
        xaTransaction.setTransactionCaching(empty);
        connectionManager.setXaTransaction(xaTransaction);
        connectionDefinitionInstance.setConnectionmanager(connectionManager);
        configPropertySetting = connectorFactory.createConfigPropertySetting();
        configPropertySetting.setName("resource-connector-resourceadapter-outbound-connectiondefinition-instance-name");
        configPropertySetting.setValue("resource-connector-resourceadapter-outbound-connectiondefinition-instance-value");
        connectionDefinitionInstance.getConfigPropertySetting().add(configPropertySetting);
        connectionDefinition.getConnectiondefinitionInstance().add(connectionDefinitionInstance);
        outboundResourceadapter.getConnectionDefinition().add(connectionDefinition);
        resourceadapter.setOutboundResourceadapter(outboundResourceadapter);
        connector.getResourceadapter().add(resourceadapter);
View Full Code Here


        }
        else if (element.getText().equals(elementTypes[CONFIG_PROPERTY_SETTING])) {
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
            }
            ConfigPropertySetting property = (ConfigPropertySetting)eObject;
            if (property == null) {
                property = (ConfigPropertySetting)getEFactory().create(ConfigPropertySetting.class);
                AdminobjectInstance aoInstance = (AdminobjectInstance)((AdminObjectSection)section).getSelectedObject();
                aoInstance.getConfigPropertySetting().add(property);
            }
            property.setName(textList.get(0).getText());
            property.setValue(textList.get(1).getText());
        }
        return true;
    }
View Full Code Here

      "Password provided in both fiels do not match", null);
    ErrorDialog.openError(this.getShell(), "Login Error",
      "Invalid Login Details", status);
    return false;
      }
      ConfigPropertySetting setting1 = new ConfigPropertySetting();
      setting1.setName("Password");
      setting1.setValue(loginData[1]);
      instance.getConfigPropertySetting().add(setting1);
      ConfigPropertySetting setting2 = new ConfigPropertySetting();
      setting2.setName("LoginTimeout");
      setting2.setValue(page2.getLoginTimeout());
      instance.getConfigPropertySetting().add(setting2);
      ConfigPropertySetting setting3 = new ConfigPropertySetting();
      setting3.setName("DatabaseName");
      setting3.setValue(page1.getDBName());
      instance.getConfigPropertySetting().add(setting3);
      ConfigPropertySetting setting4 = new ConfigPropertySetting();
      setting4.setName("CreateDatabase");
      setting4.setValue(page2.getCreateDatabase());
      instance.getConfigPropertySetting().add(setting4);
      ConfigPropertySetting setting5 = new ConfigPropertySetting();
      setting5.setName("UserName");
      setting5.setValue(loginData[0]);
      instance.getConfigPropertySetting().add(setting5);

      instance.setConnectionmanager(page3.getConnectionManager());
      definition.getConnectiondefinitionInstance().add(instance);
      outboundAdpater.getConnectionDefinition().add(definition);
View Full Code Here

                if (AdminobjectInstance.class.isInstance(element)) {
                    AdminobjectInstance aoInstance = (AdminobjectInstance)element;
                    return "Admin Object Instance: message destination name = \"" + aoInstance.getMessageDestinationName() + "\"";
                }
                if (ConfigPropertySetting.class.isInstance(element)) {
                    ConfigPropertySetting property = (ConfigPropertySetting)element;
                    return "Config Property Setting: name = \"" + property.getName() +
                            "\", value = \"" + property.getValue() + "\"";
                }

                return null;
            }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.connector.ConfigPropertySetting

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.