if (cdMetas.size() > 0) { for (org.jboss.jca.common.api.metadata.spec.ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
if (ra.getOutboundResourceadapter() != null) { for (ConnectionDefinition cd : ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(interfaceName)) cfInterface = cd.getConnectionFactoryInterface().getValue(); for (ConnectionDefinition cd : ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(cfInterface)) mcfClass = cd.getManagedConnectionFactoryClass().getValue();
/** * A validate method. Don't extending for the moment ValidatableMetadata * * @return true if Ra is valid, flase in the other cases */ public boolean validationAsBoolean() { if (this.getConnectionDefinitions() == null || this.getConnectionDefinitions().size() == 0) return false; ConnectionDefinition cdm = this.getConnectionDefinitions().get(0); if (cdm.getManagedConnectionFactoryClass() == null || cdm.getConnectionFactoryInterface() == null || cdm.getConnectionFactoryImplClass() == null || cdm.getConnectionInterface() == null || cdm.getConnectionImplClass() == null) return false; return true; }
if (cdMeta.getManagedConnectionFactoryClass() != null) Class<?> clazz = Class.forName(cdMeta.getManagedConnectionFactoryClass().getValue(), true, cl); List<ConfigProperty> configProperties = cdMeta.getConfigProperties();
for (ConnectionDefinition lcd : this.connectionDefinition) if (lcd.getManagedConnectionFactoryClass() == null || rcd.getManagedConnectionFactoryClass().equals(lcd.getManagedConnectionFactoryClass())) newConnDef.add(lcd.merge(rcd)); isNew = false;
private List<ConfigProperty> extractProperties(Connector connector) { List<ConfigProperty> originalProperties = null; if (connector.getVersion() == Version.V_10) { originalProperties = connector.getResourceadapter().getConfigProperties(); } else { if (connector.getResourceadapter() != null) { ResourceAdapter ra = connector.getResourceadapter(); if (ra.getOutboundResourceadapter() != null && ra.getOutboundResourceadapter().getConnectionDefinitions() != null) { originalProperties = ra.getOutboundResourceadapter().getConnectionDefinitions().get(0) .getConfigProperties(); } } } return originalProperties; }
sb.append(cd.getManagedConnectionFactoryClass()); sb.append(cd.getConnectionFactoryInterface()); sb.append(cd.getConnectionFactoryImplClass()); sb.append(cd.getConnectionInterface()); sb.append(cd.getConnectionImplClass()); sb.append(cd.getConnectionImplClass()); sb.append("</").append(XML.ResourceAdapter10Tag.TRANSACTION_SUPPORT).append(">"); for (ConfigProperty cp : cd.getConfigProperties())
if (cdMeta.getManagedConnectionFactoryClass() != null) Class<?> clazz = Class.forName(cdMeta.getManagedConnectionFactoryClass().getValue(), true, cl); List<ConfigProperty> configProperties = cdMeta.getConfigProperties();
@Override protected ManagedConnectionFactory createMcf(XaDataSource ds, String uniqueId, ClassLoader cl) throws NotFoundException, Exception, DeployException { Merger merger = new Merger(); Connector md = mdr.getResourceAdapter(uniqueId); md = merger.mergeConnectorAndDs(ds, md); // Get the first connection definition as there is only one ResourceAdapter ra = md.getResourceadapter(); List<ConnectionDefinition> cds = ra.getOutboundResourceadapter().getConnectionDefinitions(); ConnectionDefinition cd = cds.get(0); // ManagedConnectionFactory ManagedConnectionFactory mcf = (ManagedConnectionFactory) initAndInject(cd.getManagedConnectionFactoryClass() .getValue(), cd.getConfigProperties(), cl); initAndInjectClassLoaderPlugin(mcf, ds); return mcf; }
if (cdMetas.size() > 0) { for (ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
if (ra.getOutboundResourceadapter() != null) { for (ConnectionDefinition cd : ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(interfaceName)) cfInterface = cd.getConnectionFactoryInterface().getValue(); for (ConnectionDefinition cd : ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(cfInterface)) mcfClass = cd.getManagedConnectionFactoryClass().getValue();
@Override protected ManagedConnectionFactory createMcf(DataSource ds, String uniqueId, ClassLoader cl) throws NotFoundException, Exception, DeployException { Merger merger = new Merger(); Connector md = mdr.getResourceAdapter(uniqueId); md = merger.mergeConnectorAndDs(ds, md); // Get the first connection definition as there is only one ResourceAdapter ra = md.getResourceadapter(); List<ConnectionDefinition> cds = ra.getOutboundResourceadapter().getConnectionDefinitions(); ConnectionDefinition cd = cds.get(0); // ManagedConnectionFactory ManagedConnectionFactory mcf = (ManagedConnectionFactory) initAndInject(cd.getManagedConnectionFactoryClass() .getValue(), cd.getConfigProperties(), cl); initAndInjectClassLoaderPlugin(mcf, ds); return mcf; }
if (cdMetas.size() > 0) { for (org.jboss.jca.common.api.metadata.spec.ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
if (cdMetas.size() > 0) { for (ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
clzMcf1.add(cd.getManagedConnectionFactoryClass().getValue()); clzMcf2.add(cd.getManagedConnectionFactoryClass().getValue());