This tutorial is part 2 of a two-part series. In part one, you
copied the schema for the human resources (HR) database to the
database instance in Oracle Cloud. In part 2, you deploy and run
an HR management application on the Oracle Java Cloud Service
instance running on Oracle Cloud. (The application was developed
by using Oracle JDeveloper and ADF.)
Time to Complete
Approximately 30 minutes
Oracle Cloud is a public, enterprise, platform-as-a-service (Paas) offering. Two services provided by Oracle Cloud are particularly interesting to Java applications developers: Oracle Java Cloud Service and Oracle Database Cloud Service. You can configure these services through a web interface, a command-line tool, or an integrated development environment (IDE) such as Oracle JDeveloper. Oracle JDeveloper 11g version 18.104.22.168.0, nicely integrates with Oracle Cloud, and can be configured out-of-the-box to work with Oracle Database Cloud Service and Oracle Java Cloud Service.
Before starting this tutorial, you should:
- Have an Oracle.com account
- Have already completed the Oracle by Example tutorial titled Signing Up for a Java Cloud Service
- Have experience developing applications with Oracle JDeveloper and ADF
- Have already completed part 1 of this tutorial, Deploying
an ADF Application to Oracle Cloud Using JDeveloper, Part 1
- Have access to or have installed Oracle JDeveloper 11g (version 22.214.171.124.0 required)
- Have downloaded and unzipped the HRSystem.zip JDeveloper
project into your local JDeveloper project space, for example,
on Windows, C:\JDeveloper\mywork.
- Have access to or have installed the Oracle
Express 11g Release 2 (Oracle XE) database and unlocked
the HR schema.
- This example uses the HR schema included in the Oracle 11g Database. The Oracle Sample Schemas installation guide is part of the Oracle 11g Database documentation set, and is also available online at: http://otn.oracle.com.
Loading and Running the HRSystem Application
JDeveloper is a complete IDE and includes its own copy of
Oracle WebLogic Server 11g (10.3). The HR application
that you unzipped into the project space is a fully functional
ADF application that utilizes the HR database schema provided
with Oracle databases, such as XE. In this section, you load the
application into the IDE and run it against your local Oracle XE
Creating a Connection to the Oracle Java Cloud Service
In this step, you create a connection to your Oracle Java Cloud
Preparing the HR Application to Deploy to Oracle Cloud
The application as written communicates with the local Oracle
XE database instance through a Java Database Connectivity (JDBC)
connection. Oracle Cloud does not directly support JDBC
connections, but it does support JDBC data source connections.
In this section, you modify the application to use a JDBC data
source and provide the name of the Oracle Database Cloud Service
Deploying the HR Application to Oracle Cloud
After configuring the application to look for the database by
using the data source name for the Oracle Database Cloud
Service, you can deploy the application to the cloud.
In this tutorial, you learned how to:
- Add an Oracle Cloud server to JDeveloper as an IDE
- Prepare an ADF application to deploy to Oracle Cloud
- Deploy an application to Oracle Cloud and launch the
- Tutorial: Developing RIA Web Applications with Oracle ADF
- Shay Shmeltzer's Blog: Deploying
Oracle ADF Applications on the Oracle Java/Database Cloud
- Oracle Cloud Documentation
- To learn more about Oracle
Cloud refer to additional OBEs in the Oracle Learning Library
- Lead Curriculum Developer: Tom McGinn
To help navigate this Oracle by Example, note the following:
- Hiding Header Buttons:
- Click the Title to hide the buttons in the header. To show the buttons again, simply click the Title again.
- Topic List Button:
- A list of all the topics. Click one of the topics to navigate to that section.
- Expand/Collapse All Topics:
- To show/hide all the detail for all the sections. By default, all topics are collapsed
- Show/Hide All Images:
- To show/hide all the screenshots. By default, all images are displayed.
- To print the content. The content currently displayed or hidden will be printed.
To navigate to a particular section in this tutorial, select the topic from the list.