Class ActiveOutboundResourceAdapter

  • All Implemented Interfaces:
    ActiveResourceAdapter
    Direct Known Subclasses:
    ActiveInboundResourceAdapterImpl

    @Service(name="ActiveOutboundResourceAdapter")
    @PerLookup
    public class ActiveOutboundResourceAdapter
    extends ActiveResourceAdapterImpl
    This class represents a live outbound resource adapter (1.5 compliant) i.e.

    A resource adapter is considered active after start() and before stop() is called.

    Author:
    Binod P G, Sivakumar Thyagarajan
    • Field Detail

      • resourceadapter_

        protected jakarta.resource.spi.ResourceAdapter resourceadapter_
      • _logger

        protected static final Logger _logger
      • bootStrapContextImpl

        protected jakarta.resource.spi.BootstrapContext bootStrapContextImpl
    • Constructor Detail

      • ActiveOutboundResourceAdapter

        public ActiveOutboundResourceAdapter()
    • Method Detail

      • startResourceAdapter

        protected void startResourceAdapter​(jakarta.resource.spi.BootstrapContext bootstrapContext)
                                     throws jakarta.resource.spi.ResourceAdapterInternalException
        called by connector runtime to start the resource-adapter java bean
        Parameters:
        bootstrapContext - BootstrapContext
        Throws:
        jakarta.resource.spi.ResourceAdapterInternalException
      • loadRAConfiguration

        protected void loadRAConfiguration()
                                    throws ConnectorRuntimeException
        Loads RA javabean. This method is protected, so that any system resource adapter can have specific configuration done during the loading.
        Throws:
        ConnectorRuntimeException - if there is a failure.
      • mergeRAConfiguration

        protected Set mergeRAConfiguration​(ResourceAdapterConfig raConfig,
                                           List<Property> raConfigProps)
        merge RA bean configuration with resource-adapter-config properties Union of both. resource-adapter-config properties will override the values of resource-adapter bean's config
        Parameters:
        raConfig - resource-adapter-config
        raConfigProps - resource-adapter bean configuration
        Returns:
        merged set of config properties
      • getBootStrapContext

        public jakarta.resource.spi.BootstrapContext getBootStrapContext()
      • addAdminObject

        public void addAdminObject​(String appName,
                                   String connectorName,
                                   ResourceInfo resourceInfo,
                                   String adminObjectType,
                                   String adminObjectClassName,
                                   Properties props)
                            throws ConnectorRuntimeException
        Creates an admin object.
        Parameters:
        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.
        Throws:
        ConnectorRuntimeException