Interface ActiveResourceAdapter

    • Method Detail

      • destroy

        void destroy()
        uninitializes the resource adapter.
      • getDescriptor

        ConnectorDescriptor getDescriptor()
        Returns the Connector descriptor which represents/holds ra.xml
        Returns:
        ConnectorDescriptor Representation of ra.xml.
      • handles

        boolean handles​(ConnectorDescriptor desc,
                        String moduleName)
        Indicates whether a particular implementation of ActiveRA can handle the RAR in question.
        Parameters:
        desc - ConnectorDescriptor
        moduleName - resource adapter name
        Returns:
        boolean indiating whether a ActiveRA can handle the RAR
      • createManagedConnectionFactories

        jakarta.resource.spi.ManagedConnectionFactory[] createManagedConnectionFactories​(ConnectorConnectionPool ccp,
                                                                                         ClassLoader loader)
        Creates managed Connection factories corresponding to one pool. This should be implemented in the ActiveJmsResourceAdapter, for jms resources, has been implemented to perform xa resource recovery in mq clusters, not supported for any other code path.
        Parameters:
        ccp - Connector connection pool which contains the pool properties and ra.xml values pertaining to managed connection factory class. These values are used in MCF creation.
        loader - Classloader used to managed connection factory class.
        Returns:
        ManagedConnectionFactory created managed connection factories
      • createManagedConnectionFactory

        jakarta.resource.spi.ManagedConnectionFactory createManagedConnectionFactory​(ConnectorConnectionPool ccp,
                                                                                     ClassLoader loader)
        Creates managed Connection factory instance.
        Parameters:
        ccp - Connector connection pool which contains the pool properties and ra.xml values pertaining to managed connection factory class. These values are used in MCF creation.
        loader - Classloader used to managed connection factory class.
        Returns:
        ManagedConnectionFactory created managed connection factory instance
      • getClassLoader

        ClassLoader getClassLoader()
        Returns the class loader that is used to load the RAR.
        Returns:
        ClassLoader object.
      • getModuleName

        String getModuleName()
        Returns the module Name of the RAR
        Returns:
        A String representing the name of the connector module
      • getResourceAdapter

        jakarta.resource.spi.ResourceAdapter getResourceAdapter()
        returns the resource-adapter bean
        Returns:
        resource-adapter bean