public final class RidcSessionPoolManager
extends Object
implements oracle.adf.share.ADFScopeListener, Serializable
Manages content connections associated with ADF session scopes. An ADF
session scope is equivalent to an HttpSession for a suitably initialized ADF
HTTP application, e.g. initialized by means of ADFBindingFilter.
RidcSessionPoolManager is by design intended to manage the connections for
a single user.
Gets the RidcSessionPoolManager associated with the session scope of the
current ADF Context. The RidcSessionPoolManager object is (initially saved to
and subsequently) retrieved from the user's ADFSessionScope under the key
oracle.wcc.ridc.adfca.session.RidcSessionPoolManager_<user>.
This method has a dependency on the app having correctly initialized ADF
(such as using the ADFBindingFilter).
In the case where ADF has been initialized associated with a servlet,
the ADFSessionScope will be back by the HTTP servlet's session.
If no such RidcSessionPoolManager is stored by this key in the callers
ADFSessionScope, then a new RidcSessionPoolManager is created and stored in
the ADF session scope.
The RidcSessionPoolManager is by design intended to manage the connections
for a single user.
Gets an ADF session-scoped session pool for the named connection.
(i.e. a pool of RIDC sessions [typically of size 1] that can be used by a
single ADF session (~= HttpSession) instance to invoke service calls
against the UCM server associated with the connection).
A pool size greater than one may result for example when concurrent
downloads are triggered.
Parameters:
connectionName - The JNDI connection name
Returns:
The session pool allowing access to an RidcSession
(which in turn wraps an IdcContext instance and IdcClient instance)
Throws:
NamingException - If the connection name does not point to a valid RIDC connection
IdcClientException - If the one-time initial connection check associated with the
RidcConnection fails
RidcSessionPoolManager is an ADFScopeListener and is registered with the ADF
session scope to be notified when the session scope is invalidated (i.e.
destroyed). Invalidation of the session scope causes all connections cached
for scope to be closed.
Specified by:
scopeInvalidated in interface oracle.adf.share.ADFScopeListener