0% found this document useful (0 votes)
127 views

Documentation of ADF Application Deployment and Configuration On Glassfish

This document provides instructions for configuring the Oracle ADF library and deploying an ADF application on Glassfish application server. It describes downloading and installing Glassfish, extracting and configuring the ADF libraries, setting up a database connection pool, and deploying an example ADF EAR application file. The key steps are: 1) Installing Glassfish, 2) Configuring the ADF libraries, 3) Creating a JDBC connection pool, and 4) Deploying the ADF EAR application.

Uploaded by

a8149wk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views

Documentation of ADF Application Deployment and Configuration On Glassfish

This document provides instructions for configuring the Oracle ADF library and deploying an ADF application on Glassfish application server. It describes downloading and installing Glassfish, extracting and configuring the ADF libraries, setting up a database connection pool, and deploying an example ADF EAR application file. The key steps are: 1) Installing Glassfish, 2) Configuring the ADF libraries, 3) Creating a JDBC connection pool, and 4) Deploying the ADF EAR application.

Uploaded by

a8149wk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Documentation of

Oracle ADF Library Configuration and


Application Deployment on Glassfish
Application Server

Created by
Hadi Wijaya
Table of Contents

Glassfish ADF Library Installation ........................................................................................................... 3


Setting up Database Connection ........................................................................................................... 10
ADF Application Deployment ................................................................................................................ 13
Glassfish ADF Library Installation
Before begin installation ADF library on Glassfish application server you have to make sure that your
application was built on JDeveloper 11.1.2.3.0 or 11.1.2.4.0

1. Install Glassfish (extract from .zip file)


For example install it in C:\glassfish3

2. Create Glassfish Domain


Installation automatically will create domain with name “domain1”

If you want to create new domain use this command:

asadmin create-domain --adminport <port> <domainName>

asadmin you can find it in “C:\glassfish3\bin\asadmin”

3. Unzip adf-essentials.zip in Glassfish Domain


Goto newly created domain path (in this guide will use domain1):
(C:\glassfish3\glassfish\domains\domain1\lib) and copy adf-essentials.zip file in this path
To unzip adf libraries (adf-essentials.zip) use this command:

unzip -j adf_essentials.zip

Note: If you didn't use a -j when unzipping the adf-essentials.zip file - so you ended up with sub
directories in your lib directory. -j will get all the jar files to be extracted into a single directory.

Make sure that your extracted file structure same with the following result:
4. Start Glassfish Server
Use command prompt and execute the following

C:\glassfish3\bin\asadmin start-domain

Because of you did not mention domain name glassfish server will automatically run domain1.

If you want to run a specific domain you can write this command:

C:\glassfish3\bin\asadmin start-domain yourDomainName

If you want to see the logs of the server write this command:

C:\glassfish3\bin\asadmin start-domain –v

domain1 contain admin server with default port 4848 so, after you run domain1 it means the admin
server now is running

5. Open Glassfish Console


You can open Glassfish console using this URL: http://localhost:4848/

Default username: admin


Default password: admin
And Glassfish homepage will be appear like this:

6. Configure Java Parameter


Configure JVM. Press on server-config then press on JVM Settings.
Goto JVM Options tab

And add two following JVM Option:

-Doracle.mds.cache=simple
-Duser.timezone=Etc/GMT+7
Still on JVM Settings, increase Java memory by adjusting

-XX:PermSize=256m
-XX:MaxPermSize=512m

7. Adjusting File Configuration


Adjust asenv.bat file. You will find it in C:\glassfish3\glassfish\config , open it and add your JDK path

set AS_JAVA=C:\Java\jdk1.7.0_71
Adjust asenv.conf file. You will find it in C:\glassfish3\glassfish\config , open it and add your JDK
path

AS_JAVA=”C:\Java\jdk1.7.0_71”

8. Restart server
Stop server using this command:

C:\glassfish3\bin\asadmin stop-domain domain1

And then start it again to apply the changes.

9. Finish
Setting up Database Connection
1. Creating JDBC Connection Pools
Open Glassfish console and define data source for connecting to database. I assume in my
Application Module have defined datasource with name “SPDS” (Stock Price Data Source) regarding
to the module name

2. Make new Connection Pool


Click button “New…” to make new Connection Pool and enter the pool information

Then press “Next”


3. JDBC Connection Pool Additional Properties
In additional properties enter the database information and remove unnecessary information fields

Then press “Finish”

To be sure the connection which you enter is correct, select your Connection Pool (SPDSPool) and
press “Ping” button and you will see Ping Succeeded Message.
4. Creating JDBC Resource
Make new JDBC Resource point to your connection pool (SPDSPool), the name of the new JDBC
Resource should be “jdbc/SPDS”.

jdbc/SPDS is the name of the datasource which developer has defined in Application Module. The
application developer should provide the name of the JDBC Resource.

Then press “OK”

5. Finish
ADF Application Deployment

1. Deploying EAR Application File


I assume you have been provided application file with .ear extension by application developer.

Open glassfish console then go to menu “Applications” then press “Deploy” button

Select your .ear file, choose “server” on the “Virtual Servers” field then press “OK” (just leave rest
configuration options as default)
2. Deployment Process

Button label changed into “Processing…” indicate the process deployment still running. Wait
deployment processing until finished.

3. Deployment Finished

4. Accessing Application
Application can be accessed through link inside the deployed application.

Click the application (PPStockMonitoring)

Click “Launch”
New window will appear then you can click one of the links. You can choose http link or https

Application page should be appear like this:

5. Finished

NOTES: This application can be embedded into an IFRAME using following URL:
http://localhost:8011/stockmonitoring/faces/pages/Stock/StockMain.jspx

----== End of Document ==----

You might also like