/** * Creates an instance of <code>ManagedConnectionFactory</code> * object using the connection pool properties. Also set the * <code>ResourceAdapterAssociation</code> * * @param pool <code>ConnectorConnectionPool</code> properties. * @param jcl <code>ClassLoader</code> */ public ManagedConnectionFactory createManagedConnectionFactory( ConnectorConnectionPool pool, ClassLoader jcl) { ManagedConnectionFactory mcf; mcf = super.createManagedConnectionFactory(pool, jcl); if (mcf instanceof ResourceAdapterAssociation) { try { ((ResourceAdapterAssociation) mcf).setResourceAdapter(this.resourceadapter_); } catch (ResourceException ex) { _logger.log(Level.SEVERE, "rardeployment.assoc_failed", ex); } } return mcf; }