Business Components

oracle.jbo.common.ampool
Interface ConnectionStrategy

All Known Implementing Classes:
DefaultConnectionStrategy

public interface ConnectionStrategy

Declares application module creation and connection operations.

This interface declares an application module factory and a set of strategies for complex, property-driven application module operations.

See Also:

Field Summary
TypeField
static java.lang.String APPLICATION_MODULE_CLASS_NAME_PROPERTY
           
static java.lang.String DB_CONNECT_STRING_PROPERTY
           
static java.lang.String DB_PASSWORD_PROPERTY
           
static java.lang.String DB_USERNAME_PROPERTY
           
 
Method Summary
TypeMethod
 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 reconnect(ApplicationModule applicationModule, SessionCookie cookie, EnvInfoProvider envInfo)
          Reconnect an application module
 

Field Detail

DB_USERNAME_PROPERTY

public static final java.lang.String DB_USERNAME_PROPERTY

DB_PASSWORD_PROPERTY

public static final java.lang.String DB_PASSWORD_PROPERTY

DB_CONNECT_STRING_PROPERTY

public static final java.lang.String DB_CONNECT_STRING_PROPERTY

APPLICATION_MODULE_CLASS_NAME_PROPERTY

public static final java.lang.String APPLICATION_MODULE_CLASS_NAME_PROPERTY
Method Detail

createApplicationModule

public ApplicationModule createApplicationModule(java.util.Hashtable environment)
Create an application module. This operation is included in the connection strategy interface because location of an application module's home object may require a connection to another JNDI context.
Parameters:
environment - the environment which is to be used to locate the application module home. Typically derived from the application module configuration.

createApplicationModule

public ApplicationModule createApplicationModule(SessionCookie cookie,
                                                 EnvInfoProvider envInfo)
Create an application module. This operation is included in the connection strategy interface because location of an application module's home object may require a connection to another JNDI context.

connect

public void connect(ApplicationModule applicationModule,
                    SessionCookie cookie,
                    EnvInfoProvider envInfo)
Connect an application module.

reconnect

public void reconnect(ApplicationModule applicationModule,
                      SessionCookie cookie,
                      EnvInfoProvider envInfo)
Reconnect an application module

disconnect

public void disconnect(ApplicationModule applicationModule,
                       boolean retainState,
                       SessionCookie cookie)
Disconnect an application module

Business Components