Databases Reference
In-Depth Information
Time for action - running the application
Let us see how to run the ADF applicaion using the following steps:
1.
To run the page, we will have to right-click on the
index.jspx
page and select the
Run
opion.
2.
The page that we have created will be displayed in the default browser as shown
here in the following URL:
http://127.0.0.1:7101/EmpDirectoryApplication-ViewController-
context-root/faces/index.jspx
EmpDirectoryApplicaion-viewcontroller-
context-root
is the context root for the application.
This can be changed from
Project Properties
and
Java EE
application
of the
ViewController
project. Java EE
web context root will hold the context root for the project.
3.
Verify the contents of the page. It will display the content of the
EMP
table in a
grid layout with all the informaion bound to the UI components. The layout of
the page will be ugly with a lot of spaces and will have a horizontal scroll bar.
This will be fixed in the
Chapter 6
,
Displaying the Data
.
What just happened?
The integrated WebLogic server will be started when you run the
index.jspx
page. If it is the
irst ime a user starts WebLogic, the user will be asked to provide an administrator username-
password pair. You can also set the server to listen to a single host such as localhost. You will
see the console log of the server in the log window. You will see the highlighted statement in
the console when the server is started.
The deployment of the applicaion follows immediately ater the server is started.
The applicaion is deployed as a WAR ile, and the user is provided with a target URL
to access the page.
The web applicaion module and enterprise applicaion module are
writen to the
$USER_DIR/o.j2ee/drs
folder. In Windows,
$USER_DIR
will be in
C:\Users\{username}\ AppData\
Roaming\Jdeveloper\ system11.1.2.3.39.62.76.1
.
Search WWH ::
Custom Search