Skip Headers
Oracle® Application Server Application Developer's Guide
10g Release 2 (10.1.2)
Part No. B14000-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

A Configuration Files

This appendix shows the configuration files needed to deploy and run the first sample application:

The server.xml and default-web-site.xml files define the application. They also define mask, which is an application that the wireless feature in Oracle Application Server uses.

These configuration files are located in the J2EE_HOME/config directory.


See Also:

Oracle Application Server Containers for J2EE User's Guide for detailed description of configuration files.

A.1 server.xml

<?xml version="1.0"?>
<!DOCTYPE application-server
   PUBLIC "-//Oracle//DTD OC4J Application-server 9.04//EN"
   "http://xmlns.oracle.com/ias/dtds/application-server-09_04.dtd">
<application-server
      application-directory="../applications"
      deployment-directory="../application-deployments"
      transaction-log="../persistence/omsdk.state" > 
   <rmi-config path="./omsdk-rmi.xml" />
   <log>
      <file path="../log/omsdk-server.log" />
   </log>
   <global-application name="default" path="./application.xml" />
   <global-web-app-config path="global-web-application.xml" />
   <web-site path="./omsdk-web-site.xml" />
   <application name="omsdk"
             path="../applications/omsdk.ear" auto-start="true" /> 
   <application name="empbft"
             path="../applications/empbft.ear" auto-start="true" /> 
</application-server>

A.2 default-web-site.xml

<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "-//Oracle/DTD OC4J Web-site 9.04//EN"
                 "http://xmlns.oracle.com/ias/dtds/web-site-9_04.dtd">
<!-- change the host name below to your own host name. Localhost will -->
<!-- not work with clustering -->
<web-site
       port="9000"
       display-name="Default OracleAS Containers for J2EE Web Site">
   <default-web-app application="default" name="defaultWebApp" />
   <web-app application="omsdk" name="omsdk" root="/omsdk"
                   load-on-startup="true"/>
   <web-app application="empbft" name="web" root="/empbft"
                   load-on-startup="true"/>
   <!-- Access Log, where requests are logged to -->
   <access-log path="../log/omsdk-web-access.log" />
</web-site>

A.3 data-sources.xml

<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources"
               "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
   <data-source
       class="com.evermind.sql.DriverManagerDataSource"
       name="OracleDS"
       location="jdbc/OracleCoreDS"
       xa-location="jdbc/xa/OracleXADS"
       ejb-location="jdbc/OracleDS"
       connection-driver="oracle.jdbc.driver.OracleDriver"
       username="hr"
       password="hr"
       url="jdbc:oracle:thin:@doliu-sun:1521:db3"
       inactivity-timeout="30"
   />
</data-sources>