Oracle® Containers for J2EE Configuration and Administration Guide 10g (10.1.3.4.0) Part Number E12288-01 |
|
|
View PDF |
This chapter provides detailed documentation on the XML files used to store configuration data for the OC4J server and J2EE applications and modules deployed into it.
The configuration data for an OC4J instance and the applications and modules deployed into it is persisted in a number of XML files. Figure B-1 provides an overview of these XML files and their respective roles.
Schemas defining the Oracle-proprietary XML files used by OC4J can be viewed at the following link:
http://www.oracle.com/technology/oracleas/schema/index.html
Table B-1 describes the role and function for each OC4J server-level XML file as well as the global configuration files displayed in the preceding figure.
Unless otherwise indicated, all of these files are installed in the ORACLE_HOME
/j2ee/
instance
/config
directory by default.
Table B-1 Server-Level and Global Configuration Files
XML Configuration File | Features/Components |
---|---|
|
The OC4J server configuration file. Configures the server and points to the XML files that add to this file, such as |
|
Contains the OC4J data source configuration for all databases used by applications within OC4J. |
|
Contains OC4J RMI port configuration and RMI tunneling over HTTP. |
|
Contains the OC4J JMS configuration for |
Contains the configuration for the |
|
|
Contains the configuration for the This file includes common settings that serve as default configuration values applied to deployed applications. This file is completely unrelated to |
|
An Oracle-specific file for configuring the servlet and JSP containers within OC4J. |
Contains global OC4J-specific configuration data for all standalone resource adapters installed in the OC4J instance. |
|
|
An OC4J-specific file that contains configuration data for a Web site created within the OC4J instance. It is typically installed in the The configuration for the |
Table B-2 describes the roles and functions of the various application-level XML files displayed in the preceding figure.
Unless otherwise indicated, all of these files are installed in the ORACLE_HOME
/j2ee/
instance
/config
directory by default.
Table B-2 Application-Level Configuration Files
XML Configuration File | Features/Components |
---|---|
|
The standard J2EE application descriptor file. The local |
|
The OC4J-specific deployment descriptor, which contains configuration data for a specific deployed application. In this file, you can use the When Oracle Identity Management is being used as the security provider for a Web application, with Oracle Single Sign-On for authentication, you can synchronize a servlet session with the Oracle Java Authentication and Authorization Service (JAAS) Provider user context through <jazn-web-app ...> <property name="sso.session.synchronize" value="true"/> </jazn-web-app> Or you can set the property to To take effect, changes to orion-application.xml require an application restart (if the changes were made through Application Server Control or the security provider MBean) or an OC4J restart (if the changes were made manually). For additional information about JAAS and the features described for this element, see the Oracle Containers for J2EE Security Guide. You can also refer to related Sun Microsystems documentation at the following location: http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html |
|
The J2EE Web application deployment descriptor, used to define the Web application deployment parameters that are included in the WAR file. In addition, you can specify the URL pattern for servlets and JSPs in this file. For example, a servlet is defined in the |
|
Extends the standard J2EE descriptor with application-level, OC4J-specific configuration data, such as whether or not OC4J features like developer mode and auto-reload of JSPs are enabled. |
|
The J2EE EJB module deployment descriptor, included in the Enterprise JavaBeans (EJB) JAR file. Defines the specific structural characteristics and dependencies of the EJB modules within a JAR and provides instructions for the EJB container about how the beans expect to interact with the container. |
|
The OC4J-specific EJB deployment descriptor. Defines OC4J-specific configuration data for all EJB modules within an archive, including EJB pool settings, timeout and retry settings, JNDI mappings, and finder method specifications. Also includes properties for the TopLink persistence manager. |
|
The J2EE application client configuration file. Describes the EJB modules and other resources used by a J2EE application client packaged in an archive. |
|
Contains OC4J deployment data, including JNDI mappings to an EJB module's home interface or to external resources such as a data source, JMS queue, or mail session. |
|
The J2EE standard deployment descriptor. Contains information on implementation code, configuration properties, and security settings for a resource adapter packaged within a RAR file. |
Contains OC4J-specific deployment configuration data for a single resource adapter. This data includes EIS connection information, JNDI name to be used, connection pooling parameters, and resource principal mappings. |
|
|
The J2EE standard Web services deployment descriptor. Describes a Web service, including WSDL information and JAX-RPC mapping data, for a Web service application packaged within a WAR file. |
Defines properties used by the OC4J Web services container, such as whether to expose the WSDL file. It also defines end-point addresses and data specific to EJB modules implemented as Web services. The file can be packaged in either a WAR or an EJB JAR containing a Web service. |
The OC4J configuration file, server.xml
, is located in the ORACLE_HOME
/j2ee/
instance
/config
directory. It is the starting point for configuration of the OC4J server and all J2EE applications, Web applications, and Web sites enabled within the server.
Unless specifically instructed to do so in the OC4J documentation, you should not have to edit server.xml
manually because notations are added and updated as needed by OC4J.
The server.xml
file includes references to the application descriptor of each application within the OC4J instance, either directly or indirectly. In the case of a typical J2EE application, this reference points to the extracted EAR top-level directory and, therefore, to the application.xml
file that the EAR file contains. In the case of the OC4J global application, the server.xml
file points directly to the OC4J global application descriptor.
The server.xml
file also points to other XML configuration files. For each XML file, the location can be the full path or a path relative to the location of where the server.xml
file exists. In addition, the name of the XML file can be any name, as long as the contents of the file conform to the appropriate DTD.
The <rmi-config>
element denotes the name and location of the rmi.xml
file.
The <jms-config>
element denotes the name and location of the jms.xml
file.
The <global-application>
element denotes the name and location of the global application.xml
file.
The <global-web-app-config>
element denotes the name and location of the global-web-application.xml
file.
The <web-site>
element denotes the name and location of one *-web-site.xml
file. Since you can have multiple Web sites, you can have multiple <web-site>
entries.
The server.xml
file format is described by application-server-10_1.xsd
, which can be viewed at the following link:
http://www.oracle.com/technology/oracleas/schema/index.html
An example of the server.xml
configuration file for OC4J follows, with <!-- comments -->
to describe the various sections:
<application-server xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/ application-server-10_1.xsd" application-directory="../applications" deployment-directory="../application-deployments" connector-directory="../connectors" schema-major-version="10" schema-minor-version="0" > <!-- Shared library definitions --> <shared-library name="global.libraries" version="1.0" library-compatible="true"> <code-source path="../applib"/> <code-source path="../../../sqlj/lib"/> <code-source path="../../../lib/dsv2.jar"/> </shared-library> <shared-library name="global.tag.libraries" version="1.0" library-compatible="true"> <code-source path="../jsp/lib/taglib/standard.jar"/> </shared-library> <!-- J2EE services --> <rmi-config path="./rmi.xml" /> <sep-config path="./internal-settings.xml" /> <jms-config path="./jms.xml" /> <javacache-config path="../../../javacache/admin/javacache.xml" /> <!-- Logging --> <j2ee-logging-config path="./j2ee-logging.xml" /> <log> <file path="../log/server.log" /> </log> <java-compiler name="javac" in-process="false" encoding="ISO8859_1" extdirs="c:\sdk\jdk\jre\lib\ext" /> <!-- Default application configuration --> <global-application name="default" path="application.xml" /> <!-- Deployed application configuration --> <application name="petstore" path="../applications\petstore.ear" start="true" /> <application name="ascontrol" path="../applications\ascontrol.ear" start="true" /> <!-- Default Web application configuration file --> <global-web-app-config path="global-web-application.xml" /> <!-- Transaction Manager configuration file --> <transaction-manager-config path="transaction-manager.xml" /> <!-- Configuration files for enabled Web sites --> <web-site path="./default-web-site.xml" /> </application-server>
Required? Required; one only
Child elements:
This is the root element of the OC4J configuration file.
Table B-3 <application-server> Attributes
Name | Description |
---|---|
|
Values: string Default: The target directory for deployed archives. |
|
Values: string Default: n/a The directory into which EAR files can be copied, triggering automatic deployment/redeployment of the application. |
|
Values: string Default: The target directory for standalone resource adapters. |
|
Values: string Default: The directory containing the OC4J-specific deployment descriptors and generated files, such as compiled JSP classes and EJB wrapper classes. |
|
Values: Enables OC4J polling, which automatically checks for changes made to currently deployed applications and modules and redeploys any components that have been modified. See the Oracle Containers for J2EE Deployment Guide for an explanation of supported values and the impact of each. |
|
Values: Boolean Default: If |
taskmanager-granularity |
Values: int Default: The interval at which the task manager performs its duties, specified in milliseconds. The default is every second (1000 milliseconds). |
Parent element: <application-server>
Required? Optional; multiple allowed
Child elements:
Defines a J2EE application deployed to the OC4J instance. The <application>
element defining an application is added to server.xml
by OC4J at the time the application is deployed. As such, there is generally no need to manually modify this element.
Table B-4 <application> Attributes
Name | Description |
---|---|
|
Values: string Default: n/a The application name; typically the same as the EAR file name without the |
path |
Values: string Default: n/a The location of the EAR file or the extracted EAR top-level directory. As such, the path indirectly points to the J2EE standard |
|
Values: Boolean Default: If |
Parent element: <shared-library>
Required? Required; multiple allowed
Specifies the path to a JAR or ZIP file included in the shared library definition.
Table B-5 <code-source> Attributes
Name | Description |
---|---|
path |
Values: string Default: n/a The path to a JAR or ZIP file included in a shared library. Paths may be absolute if outside of the You can optionally set |
Parent element: <application-server>
Required? Optional; multiple allowed
Child elements:
Contains the configuration for a single thread pool with the specified name within an OC4J process. One or more applications can be configured to use the thread pool. See "Configuring OC4J Thread Pools" for details.
Table B-6 <custom-thread-pool> Attributes
Name | Description |
---|---|
|
Values: string Default: required The thread pool name. |
|
Values: string Default: The minimum number of threads that OC4J can simultaneously execute. |
|
Values: string Default: The maximum number of threads that OC4J can simultaneously execute. |
queue |
Values: string Default: The maximum number of requests that can be kept in the queue. |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. This timeout designates how long an idle thread remains alive. If the timeout is reached, the thread is destroyed. To never destroy threads, set to The default value, |
|
Values: string Default: The size of the thread pool stack. |
debug |
Values: Boolean Default: If |
Parent element: <startup-class>
, <shutdown-class>
Required? Optional; one only
Child elements:
Specifies the order of execution for each startup class. Specify an integer that designates the order in which the classes are executed.
Parent element: <application-server>
Required? Required; one only
Child elements:
Specifies the OC4J global application, known as the default
application. The name
attribute defines its name; the path
attribute specifies what to use as the OC4J global application descriptor.
Table B-7 <global-application> Attributes
Name | Description |
---|---|
|
Values: string Default: The global application name. |
|
Values: string Default: The file name and path for the global application descriptor file. The default descriptor is |
Parent element: <application-server>
Required? Optional; one only
Child elements:
Contains the old configuration format for thread pools within an OC4J process. If the server.xml
file contains the <global-thread-pool>
element, the min
, max
, keep-alive
, and queue
attribute values apply to the http
thread pool, which is created at OC4J startup. The cx-*
attributes apply to the rmi connection
thread pool, and the rmiRequest-*
attributes apply to the rmi request
thread pool. See "Configuring OC4J Thread Pools" for details.
The <global-thread-pool>
element is deprecated in OC4J 10g (10.1.3.4.0). If the server.xml
file contains this element, OC4J changes it to equivalent <thread-pool> elements that define thread pools in the new configuration format.
Table B-8 <global-thread-pool> Attributes
Name | Description |
---|---|
|
Values: string Default: n/a The minimum number of threads that OC4J can simultaneously execute. |
|
Values: string Default: n/a The maximum number of threads that OC4J can simultaneously execute. |
|
Values: string Default: n/a The maximum number of requests that can be kept in the queue. |
|
Values: Boolean Default: false If |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. This timeout designates how long an idle thread remains alive. If the timeout is reached, the thread is destroyed. A value of The default value, |
|
Values: string Default: n/a The minimum number of connection threads that OC4J can simultaneously execute. |
cx-min |
Values: string Default: n/a The maximum number of connection threads that OC4J can simultaneously execute. |
cx-queue |
Values: string Default: n/a The maximum number of requests that can be kept in the queue. |
|
Values: Boolean Default: false If |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. This timeout designates how long an idle thread remains alive. If the timeout is reached, the thread is destroyed. A value of The default value, |
|
Values: string Default: n/a The minimum number of connection threads that OC4J can simultaneously execute. |
rmiRequest-min |
Values: string Default: n/a The maximum number of connection threads that OC4J can simultaneously execute. |
rmiRequest-queue |
Values: string Default: n/a The maximum number of requests that can be kept in the queue. |
|
Values: Boolean Default: false If |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. This timeout designates how long an idle thread remains alive. If the timeout is reached, the thread is destroyed. A value of The default value, |
Parent element: <application-server>
Required? Required; one only
Child elements:
Identifies the configuration file for the OC4J global web application, which by default is the parent of all other Web applications.
The name and root directory path, or context root, of the default Web application are specified in the global application descriptor, and the default Web application is bound to a Web site through the default-web-site.xml
file. In standalone OC4J, the default context root for the default Web application is "/
".
Parent element: <shared-library>
Required? Optional; multiple allowed
Identifies a shared library to be imported by a shared library defined in the enclosing <shared-library>
element. For additional information on configuring and using shared libraries, see the Oracle Containers for J2EE Developer's Guide.
Parent element: <startup-class>, <shutdown-class>
Required? Optional; multiple allowed
Child elements: <param-name>, <param-value>
Specifies initialization parameters within a <startup-class>
or <shutdown-class>
element. Contains key and value pairs, of type String
, which OC4J takes, which are provided within the input Hashtable
argument. The names for the key-value pairs must be unique, as JNDI is used to bind each value to its name.
Parent element: <application-server>
Required? Optional; only one allowed
Child elements:
Defines the file to use as the J2EE logging configuration file.
Parent element: <application-server>
Required? Optional; one only
Child elements:
Specifies configuration parameters for the Java compiler to use to compile EJB modules. By default, the javac
compiler installed with the JDK defined in the JAVA_HOME
environment variable will be used.
Table B-13 <java-compiler> Attributes
Name | Description |
---|---|
name |
Values: string Default:
The name of the Java compiler to use. |
in-process |
Values: Boolean Default: Specifies whether to run the compiler in-process or out-of-process. If set to If set to |
|
Values: string Default: The source file encoding to use. |
bindir |
Values: string Default: n/a The absolute path to the directory containing the compiler executable. This attribute does not need to be specified to use the default |
|
Values: string Default: n/a The compiler extension library location, if applicable. |
|
Values: Boolean Default: Set to |
Parent element: <application-server>
Required? Optional; only one allowed
Child elements: None
Specifies the path to javacache.xml
, the Java Object Cache configuration file.
Parent element: <application-server>
Required? Optional; only one allowed
Child elements:
Specifies the file to use as the OC4J JMS configuration file.
Parent element: <application-server>
Required? Optional; only one allowed
Child elements: <file>
The enclosed <file> element points to the location of the OC4J server log file.
Parent element: <application-server>
Required? Optional; only one allowed
Child elements:
Defines the file to use as the OC4J RMI configuration file.
Parent element: <application-server>
Required? Optional; multiple allowed
Child elements: <code-source>, <import-shared-library>
Declares a shared library installed within the OC4J instance. For additional information on configuring and using shared libraries, see the Oracle Containers for J2EE Developer's Guide.
Table B-17 <shared-library> Attributes
Name | Description |
---|---|
|
Values: string Default: required The name of the shared library directory created within the |
version |
Values: string Default: required The version number that serves as the name of the subdirectory containing the shared library's archive files in the |
|
Values: Boolean Default: This attribute is intended for internal use only. |
Parent element: <shutdown-classes>
Required? Optional; multiple allowed
Child elements: <execution-order>
, <init-param>
Defines a shutdown class to execute before OC4J terminates, within the <shutdown-classes>
element.
Parent element: <startup-classes>
Required? Optional; multiple allowed
Child elements: <execution-order>
, <init-param>
Defines a startup class to execute on OC4J initialization, within the <startup-classes>
element.
Table B-19 <startup-class> Attributes
Name | Description |
---|---|
|
Values: string Default: required The name of the class that implements the |
failure-is-fatal |
Values: Boolean Default: If |
Parent element: <application-server>
Required? Optional; multiple allowed
Child elements:
Contains the configuration for a single system
, http
, jca
, rmi request
, or rmi connection
thread pool within an OC4J process. See "Configuring OC4J Thread Pools" for details.
Table B-20 <thread-pool> Attributes
Name | Description |
---|---|
|
Values: string Default: required
The thread pool name, which must be one of these values:
The names of the threads in these pools are prefixed with |
|
Values: string Default: The minimum number of threads that OC4J can simultaneously execute. |
|
Values: string Default: The maximum number of threads that OC4J can simultaneously execute. |
queue |
Values: string Default: The maximum number of requests that can be kept in the queue. |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. This timeout designates how long an idle thread remains alive. If the timeout is reached, the thread is destroyed. To never destroy threads, set to The default value, |
|
Values: string Default: The size of the thread pool stack. |
debug |
Values: Boolean Default: If |
Parent element: <application-server>
Required? Optional; only one allowed
Child elements:
Specifies the transaction manager configuration file.
Parent element: <application-server>
Required? Optional; multiple allowed
Child elements:
References the configuration file for a single Web site defined within OC4J. A <web-site> element must be created for each Web site; otherwise, the site will not be enabled within OC4J. See Chapter 13, "Managing Web Sites in OC4J," for details.
Parent element: <application-server>
Required? Optional; one only
Child elements:
Contains the configuration for a work management thread pool for resource adapters within an OC4J process. See "Configuring OC4J Thread Pools" for details.
This element is deprecated in OC4J 10g (10.1.3.4.0). If the server.xml
file contains this element, OC4J changes it to an equivalent <thread-pool> element that defines a jca
thread pool.
Table B-23 <work-manager-thread-pool> Attributes
Attribute | Description |
---|---|
|
Values: string Default: n/a The minimum number of threads to create in the work management thread pool. To disable the thread pool, set this value to |
|
Values: string Default: The maximum number of threads that can be created in the work management thread pool. The work management thread pool uses three worker threads for internal use. For example, if you specify |
|
Values: string Default: The maximum number of threads that can be kept in the queue in the work management thread pool. If you use the default, |
|
Values: string Default: The length of time, in milliseconds, to keep a thread alive (idle) while waiting for a new request. After the timeout is reached, the thread is destroyed. To never destroy threads, set to The default value, |
|
Values: Boolean Default: If |
The element descriptions in this section apply to any OC4J Web site configuration file, including default-web-site.xml
.
Required? Required; one only
Child elements:
<description> <frontend> <web-app> <default-web-app> <user-web-apps> <access-log> <odl-access-log> <ssl-config>
This is the root element for a Web site configuration file.
Table B-24 Web Site Configuration File Attributes
Name | Description |
---|---|
|
Values: string Default: n/a Optionally specifies a custom thread pool to be used by each application bound to this Web site by a <web-app> element in this configuration file. |
|
Values: string Default: n/a Optionally defines a user-friendly or informal Web site name. |
|
Values: string Default: n/a Specifies the host for this Web site, as either a DNS host name or an IP address. If a server is a multihome machine (having multiple IP addresses), you can use the |
|
Values: Boolean Default: Specifies whether to write information about the incoming request into the Web site log if an error occurs. The Web site log is enabled through either the |
|
Values: string Default: Sets a maximum size, in bytes, for incoming HTTP requests. If a client sends a request that exceeds this maximum, it will receive a "request entity too large" error. The default maximum is 15000. |
|
Values: Boolean Default: Specifies whether to support Secure Socket Layer (SSL) functionality. For a protocol setting of Also, a SSL and HTTPS features are also available through Oracle HTTP Server for communication between Oracle HTTP Server and the client. For information, see Oracle Application Server Security Guide. |
|
Values: string Default: n/a Specifies the protocol that the Web site is using. Possible values are To use either an Changing the value of the |
|
Values: string Default: n/a Specifies the port number for this Web site. Each port must have a corresponding protocol, and each protocol must have a corresponding port. In standalone OC4J, a port setting of 8888 is used by default for direct access to the OC4J listener, but you can change this as desired. In an Oracle Application Server environment, this port setting is overridden by OPMN, the Oracle Process Management and Notification system. Oracle Application Server uses port In a UNIX environment, port numbers less than Changing the value of the |
|
Values: Boolean Default: Typical behavior for a servlet container is to close a connection once a request has been completed. With a |
|
Values: string Default: n/a This optional attribute is useful for virtual sites sharing the same IP address. The value is a comma-delimited list of host names tied to this Web site. |
Specifies a perceived front-end host and port of this Web site as seen by HTTP clients. When the site is behind a load balancer or firewall, the <frontend>
specification is necessary to provide appropriate information to Web application code for functionality such as URL rewriting, a technique for encoding a session ID into the URL.
Using the host and port specified in the <frontend>
element, the back-end server running the application knows to refer to the front end, instead of to itself, in any URL rewriting. This way, subsequent requests properly come in through the front end again, instead of trying to access the back end directly.
Table B-25 describes the attributes of <frontend>
.
This element binds a particular Web module to this Web site. It specifies the name of a J2EE application archive (EAR file name minus the .ear
extension) from the server.xml
file, and the name of a Web module within the J2EE application. The Web module is defined in the J2EE application.xml
file in the application EAR file (or possibly in the orion-application.xml
file in the EAR file). The Web module is bound at the location specified by the <web-app>
element's root
attribute.
Note:
It is possible to deploy a WAR file by itself, instead of within an EAR file. In standalone OC4J, such Web applications are added to the OC4Jdefault
application. (In OC4J, there must always be a parent application of some sort.) See "Overview of the Application Hierarchy in OC4J" for more information.
In this scenario, the Web site XML file <web-app>
element specifies the name of the default
application rather than the name of a J2EE application archive. More details are provided in the attribute descriptions and examples that follow.
Mapping to and from Web site XML files, particularly with respect to the application
and name
attributes, is shown in examples elsewhere in this document. See "Deploying a J2EE Application (EAR)" (for a typical scenario of deploying a WAR file within an EAR file) and "Deploying a Standalone Web Module (WAR)" (for the scenario of deploying a WAR file by itself to the OC4J default application).
Table B-26 describes the attributes of <web-app>
.
Table B-26 <web-app> Attributes
Name | Description |
---|---|
access-log |
Values: string Default: false Specifies whether OC4J access logging, which logs requests to the Web site, is enabled for the Web module. If you want to enable access logging, set to For more on access log configuration, see the descriptions of the |
application |
Values: string Default: n/a Specifies the J2EE application archive name, which is the EAR file name without the If you deploy a WAR file by itself in standalone OC4J, using the OC4J default application as the parent, then the |
load-on-startup |
Values: Boolean Default: Optional. Specifies whether the Web module should be preloaded on application startup. Otherwise, it is loaded upon the first request for it. Supported values are |
max-inactivity-time |
Values: string Default: Optional. Specifies the number of minutes of inactivity after which OC4J will shut down the Web module. By default, a Web module is never shut down due to inactivity. |
name |
Values: Boolean Default: n/a Specifies the name of a Web module within the specified J2EE application, and corresponds to the |
|
Values: string Default: n/a Specifies the path to which the Web module is to be bound. This attribute defines the context root portion of the URL used to invoke the module. For example, if the Web module http://www.example.com/catalog The You can use % java -jar admin_client.jar deployer:oc4j:localhost oc4jadmin welcome1 \ -deploy -file d:my-web-store.war -deploymentName mws_2 \ -bindAllWebApps -contextRoot "/" If an EAR file includes an <application> <display-name>Web-Store</display-name> <module> <web> <web-uri>my-web-store.war</web-uri> <context-root>/</context-root> </web> </module> </application> Because the default ping URL for Oracle HTTP Server is also a slash (
You can avoid these problems by placing an |
shared |
Values: string Default: Allows sharing of a published Web module between Web sites, when a Web site is defined by a particular pairing of a protocol and a port. Supported values are If an HTTPS Web application is marked as shared, its session tracking strategy reverts from SSL session tracking to session tracking through cookies or URL rewriting. This could make the Web application less secure but might be necessary to work around issues such as SSL session timeouts not being properly supported in some browsers. |
This element creates a reference to the default Web application bound to this Web site. When a single application is bound to the Web site, such as Application Server Control, specify the application within this element.
For users, this element is relevant only in a standalone OC4J environment. In an Oracle Application Server environment, the OC4J default Web application has system-level functionality but is not otherwise meaningful.
The <default-web-app>
element uses the same attributes as the <web-app>
element described immediately preceding, but the default setting of load-on-startup
is true
.
Use this element to support user directories and applications. Each user can have a Web module and associated web-application.xml
file. User applications are reached at /
username
/
from the server root.
Table B-27 describes the attributes of <user-web-apps>
.
Table B-27 <user-web-apps> Attributes
Name | Description |
---|---|
max-inactivity-time |
Values: int Default: n/a Optional integer attribute to specify the number of minutes of inactivity after which OC4J will shut down the Web module. By default, a Web module is never shut down due to inactivity. |
path |
Specifies a path to specify the local directory of the user application, including a wildcard for the user name. The default path setting in a UNIX environment, for example, is |
Use this element to enable text-based access logging for this Web site and to specify information about the access log, including the path, file name, and what information is included. The log file is where incoming requests (each access of the Web site) are logged.
See "Configuring Text-Based Access Logging" for configuration details.
Use this element to enable ODL-based access logging for the Web site and to specify information about the access logs, including the path, and maximum values for the size of each file and the total size of all files in the log directory. The log files are where incoming requests (each access of the Web site) are logged.
See "Configuring ODL Access Logging" for configuration details.
This element specifies SSL configuration settings, if applicable. You must use it whenever you set the secure
attribute of the <web-site>
element to true
.
Subelement of <ssl-config>
:
<property>
Table B-28 describes the attributes of <ssl-config>
.
Table B-28 <ssl-config> Attributes
Name | Description |
---|---|
keystore |
Values: string Default: n/a A relative or absolute path to the keystore database (a binary file) used by this Web site to store certificates and keys for the user base in this installation. The path value includes the file name. A relative path is relative to the location of the Web site XML file. A keystore is a |
|
Values: string Default: n/a The password required to open the keystore. |
|
Values: string Default: Indicates whether the entity that is a client to OC4J, such as Oracle HTTP Server, must submit a certificate for authorization so it can communicate with OC4J. Supported values are |
|
Values: string Default: You can use this attribute to specify a provider if you are using JSSE (Java Secure Socket Extension). By default, OC4J usually employs the Sun Microsystems implementation of SSL. However, OC4J employs the Oracle SSL implementation in some cases, such as for SOAP and |
|
Values: string If you are not using JSSE, use the If you use a third-party The factory attribute and its parameters are deprecated in OC4J 10g (10.1.3.4.0). |