@Service(name="ActiveOutboundResourceAdapter") @PerLookup public class ActiveOutboundResourceAdapter extends ActiveResourceAdapterImpl
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
_logger |
protected javax.resource.spi.BootstrapContext |
bootStrapContextImpl |
protected javax.resource.spi.ResourceAdapter |
resourceadapter_ |
connectionDefs_, connectorRuntime_, desc_, jcl_, moduleName_| Constructor and Description |
|---|
ActiveOutboundResourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdminObject(String appName,
String connectorName,
ResourceInfo resourceInfo,
String adminObjectType,
String adminObjectClassName,
Properties props)
Creates an admin object.
|
javax.resource.spi.ManagedConnectionFactory |
createManagedConnectionFactory(ConnectorConnectionPool pool,
ClassLoader jcl)
Creates an instance of
ManagedConnectionFactory
object using the connection pool properties. |
void |
destroy()
Destroys default pools and resources.
|
javax.resource.spi.BootstrapContext |
getBootStrapContext() |
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
Retrieves the resource adapter java bean.
|
boolean |
handles(ConnectorDescriptor cd,
String moduleName)
Indicates whether a particular implementation of ActiveRA can handle the RAR in question.
|
void |
init(javax.resource.spi.ResourceAdapter ra,
ConnectorDescriptor desc,
String moduleName,
ClassLoader jcl)
Creates an active inbound resource adapter.
|
protected void |
loadRAConfiguration()
Loads RA javabean.
|
protected Set |
mergeRAConfiguration(ResourceAdapterConfig raConfig,
List<Property> raConfigProps)
merge RA bean configuration with resource-adapter-config properties
Union of both.
|
void |
setup()
Does the necessary initial setup.
|
protected void |
startResourceAdapter(javax.resource.spi.BootstrapContext bootstrapContext)
called by connector runtime to start the resource-adapter java bean
|
createAllConnectorResources, createDefaultConnectorConnectionPools, createDefaultConnectorResources, createManagedConnectionFactories, deleteDefaultConnectorConnectionPools, deleteDefaultConnectorResources, destroyAllConnectorResources, getClassLoader, getDescriptor, getModuleName, instantiateMCF, isServer, isSystemRarprotected javax.resource.spi.ResourceAdapter resourceadapter_
protected static final Logger _logger
protected javax.resource.spi.BootstrapContext bootStrapContextImpl
public void init(javax.resource.spi.ResourceAdapter ra,
ConnectorDescriptor desc,
String moduleName,
ClassLoader jcl)
throws ConnectorRuntimeException
init in interface ActiveResourceAdapterinit in class ActiveResourceAdapterImplra - ResourceAdapter java bean.desc - ConnectorDescriptor object.moduleName - Resource adapter module name.jcl - ClassLoader instance.ConnectorRuntimeException - If there is a failure in loading
or starting the resource adapter.protected void startResourceAdapter(javax.resource.spi.BootstrapContext bootstrapContext)
throws javax.resource.spi.ResourceAdapterInternalException
bootstrapContext - BootstrapContextjavax.resource.spi.ResourceAdapterInternalExceptionpublic boolean handles(ConnectorDescriptor cd, String moduleName)
handles in interface ActiveResourceAdapterhandles in class ActiveResourceAdapterImplcd - ConnectorDescriptormoduleName - resource adapter namepublic javax.resource.spi.ResourceAdapter getResourceAdapter()
getResourceAdapter in interface ActiveResourceAdaptergetResourceAdapter in class ActiveResourceAdapterImplResourceAdapterpublic void setup()
throws ConnectorRuntimeException
setup in interface ActiveResourceAdaptersetup in class ActiveResourceAdapterImplConnectorRuntimeException - If there is a failurepublic void destroy()
destroy in interface ActiveResourceAdapterdestroy in class ActiveResourceAdapterImplpublic javax.resource.spi.ManagedConnectionFactory createManagedConnectionFactory(ConnectorConnectionPool pool, ClassLoader jcl)
ManagedConnectionFactory
object using the connection pool properties. Also set the
ResourceAdapterAssociationcreateManagedConnectionFactory in interface ActiveResourceAdaptercreateManagedConnectionFactory in class ActiveResourceAdapterImplpool - ConnectorConnectionPool properties.jcl - ClassLoaderprotected void loadRAConfiguration()
throws ConnectorRuntimeException
ConnectorRuntimeException - if there is a failure.protected Set mergeRAConfiguration(ResourceAdapterConfig raConfig, List<Property> raConfigProps)
raConfig - resource-adapter-configraConfigProps - resource-adapter bean configurationpublic javax.resource.spi.BootstrapContext getBootStrapContext()
public void addAdminObject(String appName, String connectorName, ResourceInfo resourceInfo, String adminObjectType, String adminObjectClassName, Properties props) throws ConnectorRuntimeException
appName - Name of application, in case of embedded rar.connectorName - Module name of the resource adapter.jndiName - JNDI name to be registered.adminObjectType - Interface name of the admin object.props - Properties object containing name/value
pairs of properties.ConnectorRuntimeExceptionCopyright © 2019. All rights reserved.