Class DefaultJCoManagedConnectionContainer

    • Field Detail

      • managedConnections

        protected java.util.Map<java.lang.String,​JCoConnection> managedConnections
        Map of managed connections.
    • Constructor Detail

      • DefaultJCoManagedConnectionContainer

        public DefaultJCoManagedConnectionContainer()
    • Method Detail

      • setManagedConnectionFactory

        public void setManagedConnectionFactory​(JCoManagedConnectionFactory manangedConnectionFactory)
        Setter for connection factory.
        Parameters:
        manangedConnectionFactory - managed connection factory.
      • getManagedConnection

        public JCoConnection getManagedConnection​(java.lang.String connectionName)
        Description copied from interface: JCoManagedConnectionContainer
        Getter for managed connection.
        Throws BackendRuntimeException in case of managed connection with given name cannot be constructed.
        Specified by:
        getManagedConnection in interface JCoManagedConnectionContainer
        Parameters:
        connectionName - name of the connection.
        Returns:
        managed connection.
      • getManagedConnection

        public JCoConnection getManagedConnection​(java.lang.String connectionName,
                                                  java.lang.String destinationName)
        Description copied from interface: JCoManagedConnectionContainer
        Getter for managed connection.
        Throws BackendRuntimeException in case of managed connection with given name cannot be constructed.
        Specified by:
        getManagedConnection in interface JCoManagedConnectionContainer
        Parameters:
        connectionName - name of the connection.
        destinationName - name of the destination to be used
        Returns:
        managed connection.
      • getManagedConnection

        public JCoConnection getManagedConnection​(java.lang.String connectionName,
                                                  java.lang.String destinationName,
                                                  java.lang.String scopeId)
        Description copied from interface: JCoManagedConnectionContainer
        Getter for managed connection.
        Throws BackendRuntimeException in case of managed connection with given name cannot be constructed.
        Specified by:
        getManagedConnection in interface JCoManagedConnectionContainer
        Parameters:
        connectionName - name of the connection.
        destinationName - name of the destination to be used
        scopeId - scope id which is needed to identify different connections (sessions) to the same destination
        Returns:
        managed connection.