|Oracle® Fusion Middleware Administrator's Guide for Oracle Application Development Framework
11g Release 2 (220.127.116.11.0)
Part Number E16179-04
|PDF · Mobi · ePub|
This appendix describes how to configure GlassFish Server for Oracle ADF Essentials. It describes how to obtain the Oracle ADF Runtime and how to install these files into the GlassFish Server.
This appendix contains the following sections:
GlassFish Server is an application server that can be configured to run Oracle ADF applications. If you do not have a GlassFish Server installation, you can download GlassFish Server from the GlassFish website. Before you can run ADF applications in a GlassFish Server, you need to configure GlassFish with the Oracle ADF Runtime libraries.
For a list of the supported Oracle ADF features for GlassFish, go to the OTN site at
For instructions on obtaining and installing GlassFish, see
For information about developing ADF applications for GlassFish, see the "Deploying ADF Applications to GlassFish" appendix in the Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.
Oracle ADF Essentials supports the Open Source and commercial versions of GlassFish Server. With either version, you will need the Full Platform distribution. The Web Profile distribution is not supported. After you have installed the GlassFish Server, you need to obtain the ADF Essentials
adf-essentials.zip file from OTN and follow the instructions in this appendix to install the ADF Runtime libraries.
For information on how to start and stop the server and other application server tasks, see GlassFish documentation at the GlassFish website.
You can download the open source version of the GlassFish Server from the GlassFish website:
Follow the instructions and documentation at the site to install and configure a GlassFish Server.
In order for a GlassFish Server to run Oracle ADF applications, you must install the ADF Runtime library files into the GlassFish installation directory.
You can download the Oracle ADF Essentials
adf-essentials.zip file from the Oracle Technology Network at
After you have downloaded the
adf-essentials.zip file, you can extract the files to a temporary directory which you can use to copy the required files into the GlassFish installation directories.
The ADF Runtime libraries consists of the following:
ADF Share libraries
ADF Model libraries
ADF Controller libraries
ADF View libraries
The ADF Share libraries must be manually installed into the GlassFish installation. You use your operating system command or tools to copy the files. For instructions, see Section C.3.1, "How to Install ADF Share Libraries Manually."
The ADF Model, ADF Controller, and ADF View libraries are loaded into GlassFish with the deployed application and will be included automatically by JDeveloper.
The steps for installing the ADF Runtime libraries are:
Configure ADF Share libraries.
Copy the ADF Share libraries from
adf-essentials.zip into the GlassFish installation.
Deploy the application as an EAR file.
Before you begin:
It may be helpful to have an understanding of the options that are available to you when you are mapping ADF Share for GlassFish. For more information, see Section C.3, "Configuring GlassFish with ADF Runtime Libraries."
You will need to complete these tasks:
Install the GlassFish Server
adf-community.zip file and unzip it to a temporary directory
To install the ADF Share Runtime libraries:
Copy or move the ADF Share library files from the temporary directory to the
The ADF Share files should be in the temporary directory where you had unzip the
adf-essentials.zip file as described in Section C.2.2, "How to Obtain Oracle ADF Runtime." Typically, this directory is
oracle.adf.share.ca_11.1.1/adf-share-base.jar oracle.adf.share.ca_11.1.1/adf-share-ca.jar oracle.adf.share_11.1.1/commons-el.jar oracle.adf.share_11.1.1/adf-share-support.jar oracle.adf.share_11.1.1/adfsharembean.jar oracle.adf.share_11.1.1/jsp-el-api.jar oracle.adf.share_11.1.1/adflogginghandler.jar oracle.adf.share_11.1.1/oracle-el.jar oracle.mds_11.1.1/mdsrt.jar oracle.bali.share_11.1.1/share.jar oracle.xmlef_11.1.1/xmlef.jar oracle.javatools_11.1.1/resourcebundle.jar oracle.javatools_11.1.1/javamodel-rt.jar oracle.javatools_11.1.1/javatools-nodeps.jar oracle.adf.security_11.1.1/adf-share-security.jar oracle.adf.security_11.1.1/adf-controller-security.jar oracle.xdk_11.1.0/xmlparserv2_sans_jaxp_services.jar oracle.xdb_11.1.0.jar oracle.jrf_11.1.1/jrf-api.jar oracle.jdbc_11.1.1/ojdbc6dms.jar oracle.dms_11.1.1/dms.jar oracle.odl_11.1.1/ojdl.jar oracle.odl_11.1.1/ojdl2.jar oracle.jmx_11.1.1/jmxframework.jar oracle.jmx_11.1.1/jmxspi.jar oracle.classloader_11.1.1.jar oracle.logging-utils_11.1.1.jar oracle.web-common_11.1.1.jar oracle.webservices_11.1.1/oc4j-ws-support.jar org.apache.bcel_5.1.jar oracle.nlsrtl_11.2.0/orai18n-mapping.jar
Verify all the libraries have been copied.
After you have installed the ADF Runtime into the GlassFish Server, you need to perform additional configuration tasks on GlassFish.
The configuration tasks are:
You can use the GlassFish Administration Console to configure the GlassFish Server including managing applications, JDBC pools, and other resources.
The GlassFish Administration Console is at:
Before you begin:
It may be helpful to have an understanding of the options that are available to you when you are creating a datasource for GlassFish. For more information, see Section C.2, "Obtaining GlassFish Server and Oracle ADF Runtime."
You can use the GlassFish Administration Console or
asadmin commands to create the datasource. For more information, see GlassFish documentation.
To create a datasource for GlassFish using asadmin command:
Open a command line window.
asadmin command to create a datasource for GlassFish.
For instance, the following command creates a datasource for an application:
asadmin> create-jdbc-connection-pool --datasourceclassname oracle.jdbc.pool.SampleDataSource --restype javax.sql.XADataSource --property user=xyz :password=xyz:url=jdbc:oracle:thin:@machine.com:1521:machine --target=server SampleDSPool asadmin> ping-connection-pool SampleDSPool asadmin> create-jdbc-resource --connectionpoolid SampleDSPool jdbc/OracleDS
You need to configure the JVM settings to
simple and increase the memory size from 192 Mb to 512 Mb.
Before you begin:
It may be helpful to have an understanding of the options that are available to you when you are configuring JVM for GlassFish. For more information, see Section C.4, "Additional Configuration Tasks."
To configure JVM Cache for MDS:
Start the GlassFish Administration Console.
Choose Configurations > server-config > JVM Settings.
Select JVM Options and specify
Or, open the
/domains/domain1/config/domain.xml file and edit the following entries:
After you have referenced the libraries in the application, you can proceed to deploy the application to GlassFish Server. For more information, see the "Deploying ADF Applications to GlassFish" appendix in the Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.