Deploying ADF application in Oracle Cloud

Have you ever thought about run your ADF application on cloud? In this blog post I will show how to deploy local database tables and ADF application to Oracle Cloud using JDeveloper 11g. I would like to thank to my friend Jürgen Kress that gave me an Oracle Cloud’s licence. If you want you can get a free trial here: Oracle Cloud PaaS & SaaS Trials.

Each Oracle Java Cloud Service instance must be associated with an Oracle Database Cloud Service instance that hosts the schemas required by JRF. This way, when you request an Oracle Java Cloud Service, you will receive an Oracle Database Cloud Service Instance too.

deploying-adf-application-on-oracle-cloud1

Before you start to create your ADF application, you need to download and install JDeveloper 11.1.1.7.1 for Java and ADF deployment on Oracle Cloud.

Download the sample application: ADFCloudApp.zip.

I created a simple ADF application called ADFCloudApp that manages data of employees.

deploying-adf-application-on-oracle-cloud2

ADFCloudApp uses “EMPLOYEES” and “JOBS” tables, so we need to deploy these tables to cloud.
In the main menu, choose View > Database > Database Navigator.
In the Database Navigator window, right-click the Cloud Connections node and create a new Cloud Connection.

deploying-adf-application-on-oracle-cloud3

deploying-adf-application-on-oracle-cloud4

In the main menu, choose View > Database > Database Cart.
Drag the tables from Database Navigator window and drop them inside Database Cart window.
Select the Data option to deploy the local data.

deploying-adf-application-on-oracle-cloud5

Click on Deploy Cloud icon and provide your cloud login credentials.

deploying-adf-application-on-oracle-cloud6

The tables were deployed to the Oracle Cloud.

deploying-adf-application-on-oracle-cloud7

Now, let’s export the application.
Don’t forget to change the Datasource Name.

deploying-adf-application-on-oracle-cloud8

Create a new Application Server Connection and select the Oracle Cloud as the Connection Type.

deploying-adf-application-on-oracle-cloud9

deploying-adf-application-on-oracle-cloud10

deploying-adf-application-on-oracle-cloud11

To deploy ADF application, go to main menu and choose Application > Deploy > ADFCloudApp_application1.
In the step 1, select Deploy to Application Server and click Next.
In the step 2, select OracleCloud and click Finish.
After some minutes, you will receive a sucessful message and the application URL.

deploying-adf-application-on-oracle-cloud12

Access the application and enjoy!

deploying-adf-application-on-oracle-cloud13

This is the URL of my application on Oracle Cloud: ADFCloudApp.

Waslley Souza

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

2 thoughts on “Deploying ADF application in Oracle Cloud”

Leave a Reply

Your email address will not be published. Required fields are marked *