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);
Gbean gbean = deploymentFactory.createGbean();
gbean.setClazz("resource-connector-gbean-class");