public class DefaultConnectionStrategy extends java.lang.Object implements ConnectionStrategy
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
LAST_EXCEPTION  | 
APPLICATION_MODULE_CLASS_NAME_PROPERTY, DB_CONNECT_STRING_PROPERTY, DB_PASSWORD_PROPERTY, DB_USERNAME_PROPERTY| Constructor and Description | 
|---|
DefaultConnectionStrategy()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
connect(ApplicationModule applicationModule, SessionCookie cookie, EnvInfoProvider envInfo)
Connect an application module. 
 | 
ApplicationModule | 
createApplicationModule(java.util.Hashtable environment)
Create an application module. 
 | 
ApplicationModule | 
createApplicationModule(SessionCookie cookie, EnvInfoProvider envInfo)
Create an application module. 
 | 
void | 
disconnect(ApplicationModule applicationModule, boolean retainState, SessionCookie cookie)
Disconnect an application module 
 | 
void | 
doHandleDatabaseState(ApplicationModule appModule, ApplicationPoolSvcMsgContext ctx)  | 
void | 
reconnect(ApplicationModule applicationModule, SessionCookie cookie, EnvInfoProvider envInfo)
Reconnect an application module 
 | 
public static final java.lang.String LAST_EXCEPTION
public ApplicationModule createApplicationModule(SessionCookie cookie, EnvInfoProvider envInfo)
ConnectionStrategycreateApplicationModule in interface ConnectionStrategycookie - the SessionCookie instance that requested the ApplicationModuleenvInfo - the SessionCookie EnvInfoProvider if it exists. This parameter has been deprecated in 10.1.3. Applications should not use this parameter. The EnvInfoProvider will still be invoked by the ApplicationPool as documented in the EnvInfoProvider interface.public ApplicationModule createApplicationModule(java.util.Hashtable environment)
ConnectionStrategycreateApplicationModule in interface ConnectionStrategyenvironment - the environment which is to be used to locate the application module home. Typically derived from the application module configuration.public void connect(ApplicationModule applicationModule, SessionCookie cookie, EnvInfoProvider envInfo)
ConnectionStrategyconnect in interface ConnectionStrategyapplicationModule - the ApplicationModule instance that is to be connected.cookie - the SessionCookie instance that requested the ApplicationModuleenvInfo - the SessionCookie EnvInfoProvider if it exists. This parameter has been deprecated in 10.1.3. Applications should not use this parameter. The EnvInfoProvider will still be invoked by the ApplicationPool as documented in the EnvInfoProvider interface.public void reconnect(ApplicationModule applicationModule, SessionCookie cookie, EnvInfoProvider envInfo)
ConnectionStrategyreconnect in interface ConnectionStrategyapplicationModule - the ApplicationModule instance that is to be reconnected.cookie - the SessionCookie instance that requested the ApplicationModuleenvInfo - the SessionCookie EnvInfoProvider if it exists. This parameter has been deprecated in 10.1.3. Applications should not use this parameter. The EnvInfoProvider will still be invoked by the ApplicationPool as documented in the EnvInfoProvider interface.public void disconnect(ApplicationModule applicationModule, boolean retainState, SessionCookie cookie)
ConnectionStrategydisconnect in interface ConnectionStrategyapplicationModule - the ApplicationModule instance that is to be disconnected.cookie - the SessionCookie instance that requested the ApplicationModule // * @param envInfo the SessionCookie EnvInfoProvider if it exists. This // * parameter has been deprecated in 10.1.3. Applications should not // * use this parameter. The EnvInfoProvider will still be invoked // * by the ApplicationPool as documented in the EnvInfoProvider // * interface.public void doHandleDatabaseState(ApplicationModule appModule, ApplicationPoolSvcMsgContext ctx)