Documentation of ADF Application Deployment and Configuration On Glassfish
Documentation of ADF Application Deployment and Configuration On Glassfish
Created by
Hadi Wijaya
Table of Contents
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:
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
-Doracle.mds.cache=simple
-Duser.timezone=Etc/GMT+7
Still on JVM Settings, increase Java memory by adjusting
-XX:PermSize=256m
-XX:MaxPermSize=512m
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:
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
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.
5. Finish
ADF Application Deployment
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 “Launch”
New window will appear then you can click one of the links. You can choose http link or https
5. Finished
NOTES: This application can be embedded into an IFRAME using following URL:
http://localhost:8011/stockmonitoring/faces/pages/Stock/StockMain.jspx