Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


oracle.jbo.client
Class Configuration

java.lang.Object
  extended by oracle.jbo.client.Configuration

Direct Known Subclasses:
Configuration

public class Configuration
extends java.lang.Object

Class to manage 'Configuration' file created during the design time. The Configuaration file contains one or more named 'Configuration's. A 'Configuration' is a named collection of property-value pairs. They correspond to the list of property-value pairs, needed to perform a JNDI lookup and create an AppModule.
The property values stored in the external file might be mapped to another property name before being used in a JNDI lookup. This mapping is neeed for some properties such as the JDBC connection name. For ease, of editing in the design time, the JDBC connection is stored as a named connection and might need to be mapped to another property name.
This class can retrieve a Configuration created during the design time or create a new 'Configuration'.
This class along with the Configuration file provides an alternative way to store the list of parameters needed to create an AppModule. Clients who wish to store/retrieve the parameters from the Configuration file should use this class.
Configuration c = new Configuration( Configuration.buildConfigFileName("package10")); Hashtable env = c.getConfiguration("Oracle8iCorba"); ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup( env.get(Configuration.APPMODULE_JNDI_NAME); ..... .....


Field Summary
protected static java.lang.String APP_MODULE_CONFIG_BAG
           
protected static java.lang.String APP_MODULE_CONFIG_NAME
           
static java.lang.String APPLICATION_NAME_PROPERTY
          name of the property in the Config, which identifies the package qualified AppModuleName
static java.lang.String APPLICATION_TYPE_PROPERTY
          name of the property in the Config, which identifies the meaning of the APPLICATION_NAME_PROPERTY.
static java.lang.String APPLICATION_TYPE_VALUE_APPMODULE
           
static java.lang.String APPLICATION_TYPE_VALUE_PACKAGE
           
static java.lang.String APPMODULE_JNDI_NAME
          name of the property in the Config, which identifies the jndi name used to lookup the appmodule home.
static java.lang.String APPSERVER_CONNECTION_NAME
           
protected static java.lang.String ATTR_CONFIG_NAME
           
static java.lang.String BC4J_CONFIG
          Name of the tag, which in turn holds the AppModuleConfig nodes
static java.lang.String BC4J_CONFIG_NAME
           
static java.lang.String BC4J_CONFIG_NAMES
          name of the property in the Config, which identifies the list of existing configurations.
static java.lang.String COMMON
          name of the common package
protected  XMLDocument configDocument
           
static java.lang.String CONFIGURATION_NAME
          The package qualified configuration name of the configuration.
protected static java.lang.String CURRENT_VERSION
           
static java.lang.String DB_CONNECT_STRING_PROPERTY
           
static java.lang.String DB_CONNECTION_PROPERTY
           
static java.lang.String DB_DATASOURCE_PASSWD_PROPERTY
          Deprecated.  
static java.lang.String DB_DATASOURCE_PROPERTY
           
static java.lang.String DB_DATASOURCE_USERNAME_PROPERTY
          Deprecated.  
static java.lang.String DB_PASSWORD_PROPERTY
           
static java.lang.String DB_REQUIRES_CONNECTION
           
static java.lang.String DB_USERNAME_PROPERTY
           
static java.lang.String DEFAULT_CONFIG_FILE
           
static java.lang.String DEFAULT_CONFIG_FILE_EXT
          default name for the configuration file, created by the Wizards.
static java.lang.String DEFAULT_CONFIG_FILENAME
           
protected  DOMParser domParser
           
static java.lang.String DT_COMMONDEPLOYMENTPROFILE
           
static java.lang.String DT_DEPLOYMENTPROFILE
          name of the designtime deployment profile that created the configuration Currently only supported on ejb.
static java.lang.String DT_MIDDLETIERDEPLOYMENTPROFILE
           
static int FLAG_RESOLVE_CONNECTION
           
static int FLAG_RESOLVE_ENV_INFO_PROVIDER
           
static java.lang.String HTTP_CONNECTION_NAME
          constant to indicate the HTTP connection name
static java.lang.String IIOP_CONNECTION_NAME
          constant to indicate the IIOP connection name
static java.lang.String IS_INTERNAL
          If the configuration is internal and specifies the embedded instance.
static java.lang.String JBO_COOKIE_HANDLE
           
static java.lang.String JDBC_CONNECTION_NAME
          name of the property in the Config, which identifies the connect string.
static java.lang.String JDBC_DS_NAME
          Name of the JDBC2.0 datasource.
static java.lang.String LAST_USED_CONFIGURATION
          Name for the default configuration property.
protected static java.lang.String NAME_SPACE
           
static java.lang.String O8I_CONNECT_STRING
          default connect string for an 8i connection
static java.lang.String TESTER_CONFIG_FILENAME
           
protected static java.lang.String VERSION
           

 

Constructor Summary
Configuration()
           

 

Method Summary
protected  void addProperties(java.util.Hashtable h)
           
static java.lang.String buildConfigurationFileName(java.lang.String fileName)
          A helper function which hides the details of building a package qualified filename for the Configuration file.
static java.lang.String buildConfigurationFileNameFromClassPath(java.lang.String packageName)
           
 void createNewConnectionEntry(java.lang.String sName, java.util.Properties props)
           
static ApplicationModule createRootApplicationModule(java.lang.String qualifiedAMDefName, java.lang.String configName)
          Creates and connects an application module using the specified configuration.
static ApplicationModule createRootApplicationModule(java.lang.String qualifiedAMDefName, java.lang.String configName, EnvInfoProvider envInfo)
          Creates and connects an application module using the specified configuration.
 ApplicationModule createRootApplicationModuleFromConfig(java.lang.String configName, EnvInfoProvider envInfo)
           
static ApplicationModuleHandle createRootApplicationModuleHandle(java.lang.String qualifiedAMDefName, java.lang.String configName)
          Returns an application module handle.
static ApplicationModuleHandle createRootApplicationModuleHandle(java.lang.String qualifiedAMDefName, java.lang.String configName, EnvInfoProvider envInfo)
          Returns an application module handle.
protected  java.lang.String findProperty(Node n, java.lang.String propertyName)
          return a general property value.
protected  Node getAppModuleConfigBagNode()
           
protected  NodeList getAppModuleConfigNodes()
           
static java.lang.String getChecksumValue(java.lang.String pwd)
           
static java.util.Hashtable getConfiguration(Node node)
          If the node is a version11 configuration node, then this method returns the complete configuration.
 java.util.Hashtable getConfiguration(java.lang.String configName)
          Get the list of properties for a given Configuration.
 java.util.Hashtable getConfiguration(java.lang.String configName, boolean resolveConn)
          Get the list of properties for a given Configuration.
 void getConfiguration(java.lang.String configName, java.util.Hashtable env)
           
 void getConfiguration(java.lang.String configName, java.util.Hashtable env, boolean resolveConn)
           
 java.util.List getConfiguration(java.lang.String configName, java.util.Hashtable env, int flags)
           
 java.lang.String[] getConfigurationNameList()
          Get the list of 'named' Configuration defined in this file.
 java.lang.String[] getConfigurationNameList(java.lang.String appName)
          retrieve the list of configuration names available for the specified appName
protected  Node getConfigurationNode(java.lang.String name)
          Helper function to get a named config node
protected  NodeList getConnectionDefinitionNodes()
           
 java.lang.String[] getExternalConfigurationNameList()
           
protected  java.lang.String getNameSpace()
           
static java.lang.String getNameSpaceUri()
           
static java.lang.String getPassword(Node node)
           
static java.lang.String getRestoredChecksumValue(java.lang.String pwd)
           
protected  XMLDocument getXMLDocument(java.io.InputStream inputStream)
           
protected  XMLDocument getXMLDocument(java.io.Reader reader)
           
 void initializeFromConnectionName(java.util.Hashtable ht)
           
static boolean isEmbeddedConfig(java.util.Hashtable env)
          May be invoked to determine if the specified configuration environment represents an embedded configuration.
 boolean isEmbeddedConfig(java.lang.String configName)
          May be invoked to determine if the specified configuration represents an embedded configuration.
 boolean isOldVersion()
          Configurations loaded through JDeveloper are migrated automatically.
protected  boolean isVersion11()
           
 void loadFromClassPath(java.lang.String classPathConfigurationFileName)
          Pass the name of the Configuration file.
 void loadFromFile(java.lang.String configurationFileName)
           
 void loadFromReader(java.io.Reader reader)
           
 void loadFromStream(java.io.InputStream in)
          Build a Configuration class using the input stream on the config file.
static void main(java.lang.String[] args)
           
protected  void registerConnectionsFromDocument()
           
static void releaseRootApplicationModule(ApplicationModule appModule, boolean remove)
          Release the specified application module.
static void releaseRootApplicationModuleHandle(ApplicationModuleHandle handle, boolean remove)
          Releases the application module associated with the handle created from createRootApplicationModuleHandle(String, String).
protected  void removeConfigurationProperty(java.lang.String configName, java.lang.String property)
           
protected  void removeConnectionEntry(java.lang.String sName)
           
static boolean wasCreatedByConfiguration(ApplicationModule appModule)
          Internal use only.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

FLAG_RESOLVE_CONNECTION

public static final int FLAG_RESOLVE_CONNECTION
See Also:
Constant Field Values

FLAG_RESOLVE_ENV_INFO_PROVIDER

public static final int FLAG_RESOLVE_ENV_INFO_PROVIDER
See Also:
Constant Field Values

NAME_SPACE

protected static final java.lang.String NAME_SPACE
See Also:
Constant Field Values

VERSION

protected static final java.lang.String VERSION
See Also:
Constant Field Values

CURRENT_VERSION

protected static final java.lang.String CURRENT_VERSION
See Also:
Constant Field Values

BC4J_CONFIG

public static final java.lang.String BC4J_CONFIG
Name of the tag, which in turn holds the AppModuleConfig nodes
See Also:
Constant Field Values

APP_MODULE_CONFIG_BAG

protected static final java.lang.String APP_MODULE_CONFIG_BAG
See Also:
Constant Field Values

APP_MODULE_CONFIG_NAME

protected static final java.lang.String APP_MODULE_CONFIG_NAME
See Also:
Constant Field Values

ATTR_CONFIG_NAME

protected static final java.lang.String ATTR_CONFIG_NAME
See Also:
Constant Field Values

CONFIGURATION_NAME

public static final java.lang.String CONFIGURATION_NAME
The package qualified configuration name of the configuration.
See Also:
Constant Field Values

APPLICATION_NAME_PROPERTY

public static final java.lang.String APPLICATION_NAME_PROPERTY
name of the property in the Config, which identifies the package qualified AppModuleName
See Also:
Constant Field Values

APPMODULE_JNDI_NAME

public static final java.lang.String APPMODULE_JNDI_NAME
name of the property in the Config, which identifies the jndi name used to lookup the appmodule home.
See Also:
Constant Field Values

BC4J_CONFIG_NAME

public static final java.lang.String BC4J_CONFIG_NAME
See Also:
Constant Field Values

BC4J_CONFIG_NAMES

public static final java.lang.String BC4J_CONFIG_NAMES
name of the property in the Config, which identifies the list of existing configurations.
See Also:
Constant Field Values

APPLICATION_TYPE_PROPERTY

public static final java.lang.String APPLICATION_TYPE_PROPERTY
name of the property in the Config, which identifies the meaning of the APPLICATION_NAME_PROPERTY.
See Also:
Constant Field Values

APPLICATION_TYPE_VALUE_PACKAGE

public static final java.lang.String APPLICATION_TYPE_VALUE_PACKAGE
See Also:
Constant Field Values

APPLICATION_TYPE_VALUE_APPMODULE

public static final java.lang.String APPLICATION_TYPE_VALUE_APPMODULE
See Also:
Constant Field Values

DB_CONNECTION_PROPERTY

public static final java.lang.String DB_CONNECTION_PROPERTY
See Also:
Constant Field Values

DB_USERNAME_PROPERTY

public static final java.lang.String DB_USERNAME_PROPERTY
See Also:
Constant Field Values

DB_PASSWORD_PROPERTY

public static final java.lang.String DB_PASSWORD_PROPERTY
See Also:
Constant Field Values

DB_CONNECT_STRING_PROPERTY

public static final java.lang.String DB_CONNECT_STRING_PROPERTY
See Also:
Constant Field Values

DB_REQUIRES_CONNECTION

public static final java.lang.String DB_REQUIRES_CONNECTION
See Also:
Constant Field Values

DB_DATASOURCE_PROPERTY

public static final java.lang.String DB_DATASOURCE_PROPERTY
See Also:
Constant Field Values

DB_DATASOURCE_USERNAME_PROPERTY

public static final java.lang.String DB_DATASOURCE_USERNAME_PROPERTY
Deprecated. 
See Also:
Constant Field Values

DB_DATASOURCE_PASSWD_PROPERTY

public static final java.lang.String DB_DATASOURCE_PASSWD_PROPERTY
Deprecated. 
See Also:
Constant Field Values

IS_INTERNAL

public static final java.lang.String IS_INTERNAL
If the configuration is internal and specifies the embedded instance.
See Also:
Constant Field Values

JDBC_CONNECTION_NAME

public static final java.lang.String JDBC_CONNECTION_NAME
name of the property in the Config, which identifies the connect string. JDBC named connection ?
See Also:
Constant Field Values

DT_DEPLOYMENTPROFILE

public static final java.lang.String DT_DEPLOYMENTPROFILE
name of the designtime deployment profile that created the configuration Currently only supported on ejb.
See Also:
Constant Field Values

DT_COMMONDEPLOYMENTPROFILE

public static final java.lang.String DT_COMMONDEPLOYMENTPROFILE
See Also:
Constant Field Values

DT_MIDDLETIERDEPLOYMENTPROFILE

public static final java.lang.String DT_MIDDLETIERDEPLOYMENTPROFILE
See Also:
Constant Field Values

IIOP_CONNECTION_NAME

public static final java.lang.String IIOP_CONNECTION_NAME
constant to indicate the IIOP connection name
See Also:
Constant Field Values

APPSERVER_CONNECTION_NAME

public static final java.lang.String APPSERVER_CONNECTION_NAME
See Also:
Constant Field Values

HTTP_CONNECTION_NAME

public static final java.lang.String HTTP_CONNECTION_NAME
constant to indicate the HTTP connection name
See Also:
Constant Field Values

JDBC_DS_NAME

public static final java.lang.String JDBC_DS_NAME
Name of the JDBC2.0 datasource.
See Also:
Constant Field Values

O8I_CONNECT_STRING

public static final java.lang.String O8I_CONNECT_STRING
default connect string for an 8i connection
See Also:
Constant Field Values

COMMON

public static final java.lang.String COMMON
name of the common package
See Also:
Constant Field Values

LAST_USED_CONFIGURATION

public static final java.lang.String LAST_USED_CONFIGURATION
Name for the default configuration property. This property is first used by the design time environment to store the name of the last used configuration (when the BC4J Tester was launched before). Secondly, it is used by the runtime environment to show this last selected configuration as the default selection in the dropdown
See Also:
Constant Field Values

DEFAULT_CONFIG_FILE_EXT

public static final java.lang.String DEFAULT_CONFIG_FILE_EXT
default name for the configuration file, created by the Wizards.
See Also:
Constant Field Values

DEFAULT_CONFIG_FILE

public static final java.lang.String DEFAULT_CONFIG_FILE
See Also:
Constant Field Values

DEFAULT_CONFIG_FILENAME

public static final java.lang.String DEFAULT_CONFIG_FILENAME
See Also:
Constant Field Values

TESTER_CONFIG_FILENAME

public static final java.lang.String TESTER_CONFIG_FILENAME
See Also:
Constant Field Values

JBO_COOKIE_HANDLE

public static final java.lang.String JBO_COOKIE_HANDLE
See Also:
Constant Field Values

configDocument

protected XMLDocument configDocument

domParser

protected DOMParser domParser

Constructor Detail

Configuration

public Configuration()

Method Detail

getNameSpaceUri

public static final java.lang.String getNameSpaceUri()

isOldVersion

public boolean isOldVersion()
Configurations loaded through JDeveloper are migrated automatically. Configurations loaded at runtime are not. This method allows configuration consumers to decide whether to keep the configuration, or create a new one
Returns:
true if the document contains a prior layout

getConfiguration

public static java.util.Hashtable getConfiguration(Node node)
If the node is a version11 configuration node, then this method returns the complete configuration. This can be used to run from an in-memory configuration.
Parameters:
node -
Returns:
the configuration parameters
For internal use only. Application developers should not use this

isVersion11

protected final boolean isVersion11()

loadFromStream

public void loadFromStream(java.io.InputStream in)
                    throws JboException
Build a Configuration class using the input stream on the config file.
Parameters:
in - The input stream on the config file
Throws:
JboException

loadFromReader

public void loadFromReader(java.io.Reader reader)
                    throws JboException
Throws:
JboException

loadFromFile

public void loadFromFile(java.lang.String configurationFileName)
                  throws JboException
Throws:
JboException

loadFromClassPath

public void loadFromClassPath(java.lang.String classPathConfigurationFileName)
                       throws JboException
Pass the name of the Configuration file. This file is a package qualified name and should be found in the classpath. If the file is not found a runtime exception is thrown Configuration c = Configuration("package1/common/bc4j.xcfg");
Parameters:
classPathConfigurationFileName - Package qualified name of the Configuration file. The configuratin file named bc4j.xcfg is stored in the common package of an AppModule
Throws:
JboException

getConfiguration

public java.util.Hashtable getConfiguration(java.lang.String configName)
                                     throws JboException
Get the list of properties for a given Configuration. This method reads the property from the file (translates some of the property) names are returns a Hashtable with the list of properties. The list of properties which are mapped to a different name are.... The Hashtable returned will be typically used to perform a JNDI lookup and create an AppModule.
Parameters:
configName - which was created in the design time using the Configurations dialog.
Throws:
JboException - if the named Configuration is not found

getConfiguration

public java.util.Hashtable getConfiguration(java.lang.String configName,
                                            boolean resolveConn)
Get the list of properties for a given Configuration. This method reads the property from the file (translates some of the property) names are returns a Hashtable with the list of properties. The list of properties which are mapped to a different name are.... The Hashtable returned will be typically used to perform a JNDI lookup and create an AppModule.
Parameters:
configName - which was created in the design time using the Configurations dialog.
resolveConn - resolve the Configuration's named connection, if it is defined.
Throws:
JboException - if the named Configuration is not found

getConfiguration

public void getConfiguration(java.lang.String configName,
                             java.util.Hashtable env)
                      throws JboException
Throws:
JboException

getConfiguration

public void getConfiguration(java.lang.String configName,
                             java.util.Hashtable env,
                             boolean resolveConn)

getConfiguration

public java.util.List getConfiguration(java.lang.String configName,
                                       java.util.Hashtable env,
                                       int flags)

isEmbeddedConfig

public boolean isEmbeddedConfig(java.lang.String configName)
May be invoked to determine if the specified configuration represents an embedded configuration.
Returns:
true if embedded configuration

isEmbeddedConfig

public static boolean isEmbeddedConfig(java.util.Hashtable env)
May be invoked to determine if the specified configuration environment represents an embedded configuration.
Returns:
true if embedded configuration

addProperties

protected void addProperties(java.util.Hashtable h)

getConfigurationNameList

public java.lang.String[] getConfigurationNameList()
                                            throws JboException
Get the list of 'named' Configuration defined in this file.
Returns:
an array of names.
Throws:
JboException - if the named Configuration is not found

getConfigurationNameList

public java.lang.String[] getConfigurationNameList(java.lang.String appName)
                                            throws JboException
retrieve the list of configuration names available for the specified appName
Parameters:
appName - the name of the application module
Returns:
array of configuration names
Throws:
JboException

getExternalConfigurationNameList

public java.lang.String[] getExternalConfigurationNameList()

buildConfigurationFileName

public static java.lang.String buildConfigurationFileName(java.lang.String fileName)
A helper function which hides the details of building a package qualified filename for the Configuration file.
Parameters:
fileName - pass the name of the ApplicationModule package., ex., pass package10, for package10.Package10Module
Returns:
a string which is the package qualified filename, where the Configuration file is located. In the above example it would return /package10/common/bc4j.xcfg

buildConfigurationFileNameFromClassPath

public static java.lang.String buildConfigurationFileNameFromClassPath(java.lang.String packageName)

getConfigurationNode

protected Node getConfigurationNode(java.lang.String name)
Helper function to get a named config node

getNameSpace

protected final java.lang.String getNameSpace()

getAppModuleConfigNodes

protected NodeList getAppModuleConfigNodes()

getAppModuleConfigBagNode

protected Node getAppModuleConfigBagNode()

getXMLDocument

protected XMLDocument getXMLDocument(java.io.InputStream inputStream)
                              throws JboException
Throws:
JboException

getXMLDocument

protected XMLDocument getXMLDocument(java.io.Reader reader)
                              throws JboException
Throws:
JboException

initializeFromConnectionName

public void initializeFromConnectionName(java.util.Hashtable ht)

registerConnectionsFromDocument

protected void registerConnectionsFromDocument()
                                        throws JboException
Throws:
JboException

createNewConnectionEntry

public void createNewConnectionEntry(java.lang.String sName,
                                     java.util.Properties props)

removeConnectionEntry

protected void removeConnectionEntry(java.lang.String sName)

getConnectionDefinitionNodes

protected NodeList getConnectionDefinitionNodes()

findProperty

protected final java.lang.String findProperty(Node n,
                                              java.lang.String propertyName)
return a general property value. If the configuration is built using the schema, then the attribute value is returned. Otherwise, the value of a child element will be returned.

removeConfigurationProperty

protected void removeConfigurationProperty(java.lang.String configName,
                                           java.lang.String property)

releaseRootApplicationModule

public static void releaseRootApplicationModule(ApplicationModule appModule,
                                                boolean remove)
Release the specified application module.
Parameters:
appModule - an application module which was created with createRootApplicationModule(String, String, EnvInfoProvider)
remove - indicates whether the application module should be removed true: remove the application module false: retain the application module for future use

releaseRootApplicationModuleHandle

public static void releaseRootApplicationModuleHandle(ApplicationModuleHandle handle,
                                                      boolean remove)
Releases the application module associated with the handle created from createRootApplicationModuleHandle(String, String). After release the handle is no longer usable to obtain another application module instance. An attempt to do so will throw an exception.
Parameters:
handle - application module handle obtained from createRootApplicationModuleHandle(String, String)
remove - indicates whether the application module should be removed

createRootApplicationModule

public static ApplicationModule createRootApplicationModule(java.lang.String qualifiedAMDefName,
                                                            java.lang.String configName)
Creates and connects an application module using the specified configuration.
Parameters:
qualifiedAMDefName - the package qualified application module definition name
configName - the name ofthe configuration
See Also:
createRootApplicationModuleHandle(String, String)

createRootApplicationModule

public static ApplicationModule createRootApplicationModule(java.lang.String qualifiedAMDefName,
                                                            java.lang.String configName,
                                                            EnvInfoProvider envInfo)
Creates and connects an application module using the specified configuration.
Parameters:
qualifiedAMDefName - the package qualified application module definition name
configName - the name ofthe configuration
envInfo - an EnvInfoProvider which may be used to provide additional information when the application module is connected
See Also:
createRootApplicationModuleHandle(String, String, EnvInfoProvider)

createRootApplicationModuleFromConfig

public ApplicationModule createRootApplicationModuleFromConfig(java.lang.String configName,
                                                               EnvInfoProvider envInfo)

createRootApplicationModuleHandle

public static ApplicationModuleHandle createRootApplicationModuleHandle(java.lang.String qualifiedAMDefName,
                                                                        java.lang.String configName)
Returns an application module handle. The handle is then used to obtain an application module from the pool by invoking useApplicationModule(). After use, the application module should be returned to the pool using the counterpart method releaseRootApplicationModuleHandle(ApplicationModuleHandle, boolean).

e.g.)

  ApplicationModuleHandle handle =
   Configuration.createRootApplicationModuleHandle("mypkg.AppModule", "AppModuleShared");
  ApplicationModule sharedAM = handle.useApplicationModule();
  ...
  Configuration.releaseRootApplicationModuleHandle(handle, false);
 
This method is recommended over createRootApplicationModule(String, String) for creating shared application modules.
Parameters:
qualifiedAMDefName -
configName -

createRootApplicationModuleHandle

public static ApplicationModuleHandle createRootApplicationModuleHandle(java.lang.String qualifiedAMDefName,
                                                                        java.lang.String configName,
                                                                        EnvInfoProvider envInfo)
Returns an application module handle. The handle is then used to obtain an application module from the pool by invoking useApplicationModule(). After use, the application module should be returned to the pool using the counterpart method releaseRootApplicationModuleHandle(ApplicationModuleHandle, boolean).

This method is recommended over createRootApplicationModule(String, String, EnvInfoProvider) for creating shared application modules.

Parameters:
qualifiedAMDefName - the package qualified application module definition name
configName - the name of configuration
envInfo - an EnvInfoProvider which may be used to provide additional information when the application module is connected

wasCreatedByConfiguration

public static boolean wasCreatedByConfiguration(ApplicationModule appModule)
Internal use only.
For internal use only. Application developers should not use this

main

public static void main(java.lang.String[] args)

getPassword

public static java.lang.String getPassword(Node node)

getChecksumValue

public static final java.lang.String getChecksumValue(java.lang.String pwd)

getRestoredChecksumValue

public static final java.lang.String getRestoredChecksumValue(java.lang.String pwd)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


Copyright © 1997, 2009, Oracle. All rights reserved.