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());
ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(cfInterface)) mcfClass = cd.getManagedConnectionFactoryClass().getValue();
for (ConnectionDefinition lcd : this.connectionDefinition) if (lcd.getManagedConnectionFactoryClass() == null || rcd.getManagedConnectionFactoryClass().equals(lcd.getManagedConnectionFactoryClass()))
sb.append(cd.getManagedConnectionFactoryClass()); sb.append(cd.getConnectionFactoryInterface()); sb.append(cd.getConnectionFactoryImplClass());
if (cdMetas.size() > 0) { for (org.jboss.jca.common.api.metadata.spec.ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.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();
if (cdMeta.getManagedConnectionFactoryClass() != null) Class<?> clazz = Class.forName(cdMeta.getManagedConnectionFactoryClass().getValue(), true, cl); List<ConfigProperty> configProperties = cdMeta.getConfigProperties();
if (cdMetas.size() > 0) { for (ConnectionDefinition cdMeta : cdMetas) { raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
raMcfClasses.add(cdMeta.getManagedConnectionFactoryClass().getValue());
ra.getOutboundResourceadapter().getConnectionDefinitions()) { if (cd.getConnectionFactoryInterface().getValue().equals(cfInterface)) mcfClass = cd.getManagedConnectionFactoryClass().getValue();
@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; }
@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; }
clzMcf1.add(cd.getManagedConnectionFactoryClass().getValue()); clzMcf2.add(cd.getManagedConnectionFactoryClass().getValue());