Class ConnectionManagerImpl

    • Constructor Detail

      • ConnectionManagerImpl

        public ConnectionManagerImpl​(PoolInfo poolInfo,
                                     ResourceInfo resourceInfo)
    • Method Detail

      • setJndiName

        public void setJndiName​(String jndiName)
      • setLogicalName

        public void setLogicalName​(String logicalName)
      • getLogicalName

        public String getLogicalName()
      • allocateNonTxConnection

        public Object allocateNonTxConnection​(jakarta.resource.spi.ManagedConnectionFactory mcf,
                                              jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                       throws jakarta.resource.ResourceException
        Allocate a non transactional connection. This connection, even if acquired in the context of an existing transaction, will never be associated with a transaction The typical use case may be to check the original contents of an EIS when a transacted connection is changing the contents, and the tx is yet to be committed.

        We create a ResourceSpec for a non tx connection with a name ending in __nontx. This is to maintain uniformity with the scheme of having __pm connections. If one were to create a resource with a jndiName ending with __nontx the same functionality might be achieved.

        Specified by:
        allocateNonTxConnection in interface ConnectionManager
        Parameters:
        mcf - ManagedConnectionFactory
        cxRequestInfo - ConnectionRequestInfo
        Returns:
        Connection
        Throws:
        jakarta.resource.ResourceException - when unable to provide a connection
      • allocateConnection

        public Object allocateConnection​(jakarta.resource.spi.ManagedConnectionFactory mcf,
                                         jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                  throws jakarta.resource.ResourceException
        Specified by:
        allocateConnection in interface jakarta.resource.spi.ConnectionManager
        Throws:
        jakarta.resource.ResourceException
      • allocateConnection

        public Object allocateConnection​(jakarta.resource.spi.ManagedConnectionFactory mcf,
                                         jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo,
                                         String jndiNameToUse)
                                  throws jakarta.resource.ResourceException
        Throws:
        jakarta.resource.ResourceException
      • allocateConnection

        public Object allocateConnection​(jakarta.resource.spi.ManagedConnectionFactory mcf,
                                         jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo,
                                         String jndiNameToUse,
                                         Object conn)
                                  throws jakarta.resource.ResourceException
        Throws:
        jakarta.resource.ResourceException
      • internalGetConnection

        protected Object internalGetConnection​(jakarta.resource.spi.ManagedConnectionFactory mcf,
                                               ResourcePrincipal prin,
                                               jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo,
                                               boolean shareable,
                                               String jndiNameToUse,
                                               Object conn,
                                               boolean isUnknownAuth)
                                        throws jakarta.resource.ResourceException
        Throws:
        jakarta.resource.ResourceException
      • setRarName

        public void setRarName​(String _rarName)
      • getRarName

        public String getRarName()
      • logFine

        public void logFine​(String message)
      • getLogger

        protected static Logger getLogger()