Deploying Oracle ADF Applications on the Oracle Java/Database Cloud

With the new Oracle Cloud environment you no longer have to maintain a WebLogic server or a database server of your own, you can instead use instances hosted in the Oracle Cloud.

One nice feature of the Oracle Cloud is the support for deployment of Oracle ADF applications. In this entry I'll walk you through the basic steps you'll need to follow to get things working.

The first step is to get an Oracle Java Cloud Instance available for you - you can get a trial version here - this will also include an instance of an Oracle database onto which you can deploy your database objects.

Once your request gets approved you'll get an email with the cloud connection information for your instance. Guard this email - it has all the basic connection information and you'll be referring to it on a frequent basis.

Now you are ready to deploy your application.

The first step is to create a user in the database that will have your data (tables, procedures etc). To do this, go into the Oracle instance you got - this will be an APEX interface. In there go and create a new user - remember that user name. In the video below the user is called Summit.

Next you'll want to create/populate the tables of data. This can be done from inside JDeveloper. Open the database navigator, and you'll notice a new type of connection there - the cloud connection. Create a new connection mapping to the user you just defined (Summit). Now to create the tables and data we are going to use the Cloud Cart functionality in JDeveloper.

Open the Cloud Cart (from the JDeveloper View->Database->... Menu option). And simply drag into it any DB object that you require directly from your "regular" DB connection. Once you dropped all the tables, you should probably also click the data check box if you want the data to be transferred too (this is missing in the video so here is a picture).

When you are ready to do the import click the cloud button on the cart and this will create a new batch job that will upload to the database. You can track this deployment job directly from inside JDeveloper as well.

Once the tables are in place you are ready to move to the next step - the ADF application deployment.

One thing you'll need to change is the definition of the database that you are connecting to. Since you can't actually define data sources on the hosted WLS, you'll want to use the one which is already defined - it is called "database".

Go into your Application Module configuration and update the connection to use a JDBC DataSource called database.

Now you are ready to deploy your application - from the application menu choose deploy -> to application server.

You can define a new application server connection of type "Oracle Cloud" and this will allow you to directly deploy your application onto the server.

Once deployment is done - you are ready to access your cloud based application.

Check out this video for a demo of the above steps. 

If you are running into issues while deploying you'll be able to get more information in two places:

First you'll get a log from your deployment job - this can be directly opened in JDeveloper by clicking the link in the log window:

For more details - you can look into the server's log from the Java service console - click the "View log messages".

Need more information on deploying Oracle ADF on the Oracle Cloud - see additional blog entries:

Andreas Koop - Deploying ADF Applications into the Oracle Cloud Using JDeveloper

Andrejus Baranovskis - My ADF Sample Apps Live in Oracle Java Cloud


Thanks Shay. It helped us as well. We are expecting more for the Oracle Cloud from this blog.

We have got it signed up for one of our customer but we have deployed using your post. Thanks again.

Posted by guest on February 24, 2013 at 04:49 AM PST #

Hi Shay,

I did signup for free Oracle cloud account. I have got all the details and able to create a new user as well.

But , in my mail I cannot find any sftp password details.
I have just got the sftp account name.


Posted by Nikhil Misra on March 04, 2013 at 06:46 AM PST #

Nikhil, you should be able to modify your password from the identity management console - which is linked from the email you got once your account was approved.

Posted by Shay on March 04, 2013 at 01:11 PM PST #

Hi Shay,

I can see that I can change the password ffrom Identity Mgmt console, but is that sftp password, my main issue is with sftp account.

Nikhil Misra

Posted by Nikhil Misra on March 07, 2013 at 08:25 PM PST #

Hi Shay,

Good tutorial on Cloud deployment.
I requested for one Trail cloud instance online by providing some credit card number(might be for identity check), but i am not get any mail regarding my trail version. any idea?

Posted by krishna Ravuri on April 03, 2013 at 12:00 AM PDT #

Hi Shay,

Thanks for the great post. Could you please tell me how we can know the right version of Jdev to use?


Posted by guest on November 19, 2013 at 12:47 AM PST #

The JDeveloper download page lists the version you need for cloud.
Right now it is

Posted by Shay on November 19, 2013 at 12:16 PM PST #

Hi Shay,
Ok, thanks for the reply.
Just curious, can we deploy SOA and BPM application in JAVA could or it only supports ADF? Thanks.

Posted by Pradeep on November 19, 2013 at 06:27 PM PST #

Pradeep - right now it is Java and DB services only

Posted by Shay on November 21, 2013 at 11:25 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:

« April 2014