Class ActiveInboundResourceAdapterImpl
- java.lang.Object
-
- com.sun.enterprise.connectors.ActiveResourceAdapterImpl
-
- com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
-
- com.sun.enterprise.connectors.inbound.ActiveInboundResourceAdapterImpl
-
- All Implemented Interfaces:
ActiveResourceAdapter,ActiveInboundResourceAdapter
- Direct Known Subclasses:
ActiveJmsResourceAdapter
@Service(name="ActiveInboundResourceAdapter") @PerLookup public class ActiveInboundResourceAdapterImpl extends ActiveOutboundResourceAdapter implements ActiveInboundResourceAdapter
Represents the active (runtime) inbound resource-adapter
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
_logger, bootStrapContextImpl, resourceadapter_
-
Fields inherited from class com.sun.enterprise.connectors.ActiveResourceAdapterImpl
connectionDefs_, connectorRuntime_, desc_, jcl_, moduleName_
-
-
Constructor Summary
Constructors Constructor Description ActiveInboundResourceAdapterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEndpointFactoryInfo(String id, MessageEndpointFactoryInfo info)Adds endpoint factory information.voiddestroy()Destroys default pools and resources.Collection<MessageEndpointFactoryInfo>getAllEndpointFactories()Retrieves the information about all endpoint factories.SetgetAllEndpointFactoryInfo()MessageEndpointFactoryInfogetEndpointFactoryInfo(String id)Returns information about endpoint factory.booleanhandles(ConnectorDescriptor cd, String moduleName)Indicates whether a particular implementation of ActiveRA can handle the RAR in question.voidinit(jakarta.resource.spi.ResourceAdapter ra, ConnectorDescriptor desc, String moduleName, ClassLoader jcl)Creates an active inbound resource adapter.voidremoveEndpointFactoryInfo(String id)Removes information about an endpoint factoryvoidupdateMDBRuntimeInfo(EjbMessageBeanDescriptor descriptor_, BeanPoolDescriptor poolDescriptor)update MDB container runtime propertiesvoidvalidateActivationSpec(jakarta.resource.spi.ActivationSpec spec)validate the activation-spec-
Methods inherited from class com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
addAdminObject, createManagedConnectionFactory, getBootStrapContext, getResourceAdapter, loadRAConfiguration, mergeRAConfiguration, setup, startResourceAdapter
-
Methods inherited from class com.sun.enterprise.connectors.ActiveResourceAdapterImpl
createAllConnectorResources, createDefaultConnectorConnectionPools, createDefaultConnectorResources, createManagedConnectionFactories, deleteDefaultConnectorConnectionPools, deleteDefaultConnectorResources, destroyAllConnectorResources, getClassLoader, getDescriptor, getModuleName, instantiateMCF, isServer, isSystemRar
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.connectors.ActiveResourceAdapter
createManagedConnectionFactories, createManagedConnectionFactory, getClassLoader, getDescriptor, getModuleName, getResourceAdapter, setup
-
-
-
-
Method Detail
-
init
public void init(jakarta.resource.spi.ResourceAdapter ra, ConnectorDescriptor desc, String moduleName, ClassLoader jcl) throws ConnectorRuntimeExceptionCreates an active inbound resource adapter. Sets all RA java bean properties and issues a start.- Specified by:
initin interfaceActiveResourceAdapter- Overrides:
initin classActiveOutboundResourceAdapter- Parameters:
ra-ResourceAdapterjava bean.desc-ConnectorDescriptorobject.moduleName- Resource adapter module name.jcl-ClassLoaderinstance.- Throws:
ConnectorRuntimeException- If there is a failure in loading or starting the resource adapter.
-
destroy
public void destroy()
Destroys default pools and resources. Stops the Resource adapter java bean.- Specified by:
destroyin interfaceActiveResourceAdapter- Overrides:
destroyin classActiveOutboundResourceAdapter
-
getAllEndpointFactories
public Collection<MessageEndpointFactoryInfo> getAllEndpointFactories()
Retrieves the information about all endpoint factories.- Returns:
- a
CollectionofMessageEndpointFactoryobjects.
-
getEndpointFactoryInfo
public MessageEndpointFactoryInfo getEndpointFactoryInfo(String id)
Returns information about endpoint factory.- Specified by:
getEndpointFactoryInfoin interfaceActiveInboundResourceAdapter- Parameters:
id- Id of the endpoint factory.- Returns:
MessageEndpointFactoryIndoobject.
-
updateMDBRuntimeInfo
public void updateMDBRuntimeInfo(EjbMessageBeanDescriptor descriptor_, BeanPoolDescriptor poolDescriptor) throws ConnectorRuntimeException
Description copied from interface:ActiveInboundResourceAdapterupdate MDB container runtime properties- Specified by:
updateMDBRuntimeInfoin interfaceActiveInboundResourceAdapter- Parameters:
descriptor_- MessageBean DescriptorpoolDescriptor- Bean pool descriptor- Throws:
ConnectorRuntimeException
-
validateActivationSpec
public void validateActivationSpec(jakarta.resource.spi.ActivationSpec spec)
Description copied from interface:ActiveInboundResourceAdaptervalidate the activation-spec- Specified by:
validateActivationSpecin interfaceActiveInboundResourceAdapter- Parameters:
spec- activation-spec
-
getAllEndpointFactoryInfo
public Set getAllEndpointFactoryInfo()
-
handles
public boolean handles(ConnectorDescriptor cd, String moduleName)
Indicates whether a particular implementation of ActiveRA can handle the RAR in question.- Specified by:
handlesin interfaceActiveResourceAdapter- Overrides:
handlesin classActiveOutboundResourceAdapter- Parameters:
cd- ConnectorDescriptormoduleName- resource adapter name- Returns:
- boolean indiating whether a ActiveRA can handle the RAR
-
addEndpointFactoryInfo
public void addEndpointFactoryInfo(String id, MessageEndpointFactoryInfo info)
Adds endpoint factory information.- Specified by:
addEndpointFactoryInfoin interfaceActiveInboundResourceAdapter- Parameters:
id- Unique identifier of the endpoint factory.info-MessageEndpointFactoryInfoobject.
-
removeEndpointFactoryInfo
public void removeEndpointFactoryInfo(String id)
Removes information about an endpoint factory- Specified by:
removeEndpointFactoryInfoin interfaceActiveInboundResourceAdapter- Parameters:
id- Unique identifier of the endpoint factory to be removed.
-
-