Oracle® Enterprise Pack for Eclipse User's Guide
Release 12.1.2.1
E41257-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

5 Oracle Cloud Support

You can develop applications in OEPE and deploy them to Oracle Cloud. For more information about Oracle Cloud or to open an Oracle Cloud account, visit http://cloud.oracle.com.

After you sign up for Oracle Cloud, you will information about the data center, the identity domain, and the service name which you use to establish a connection to your Oracle Java Service instance.

This document contains the following sections:

5.1 Configuring a Runtime Environment for Oracle Cloud

You can configure an Oracle Cloud instance using the Servers view, or from the Runtime Environments page available under the Servers node on the Preferences dialog.

To configure an Oracle Cloud runtime environment:

  1. In the Servers view, right-click and choose New > Server from the context menu.

  2. In the server type tree, select Oracle > Oracle Cloud. Then click Next.

  3. Enter a name for the Oracle Cloud target. After you sign up for Oracle Cloud, you will receive information about the data center, the identity domain, and the service name which you enter here to establish a connection to your Oracle Java Service instance. If you do not have an Oracle Cloud account, Open an Oracle Cloud account to open a Cloud account.

  4. Enter the Administrator username and Password you received when you signed up for Oracle Cloud.

  5. In Cloud SDK, enter or browse to the location of the top level directory, oracle-javacloud-sdk, for the Oracle Java Cloud Service SDK that you want to use. The directory must be a valid location.

  6. Click Test Connection to test your connection to Oracle Cloud.

  7. Optionally, click Perform whitelist scan prior to publish to locally test if your application will deploy successfully to Oracle Cloud.

  8. Click Finish.

In addition to Oracle Cloud connection information, the Servers view also provides the following information:

5.2 Accessing the Oracle Java Cloud Service Jobs Log

The Oracle Java Cloud Service Jobs log, shown in Figure 5-1, "Oracle Java Cloud Service Service Jobs Window", provides comprehensive information on the jobs being executed by the Java Cloud Service, including Id, status, duration, and nature of operation.

Figure 5-1 Oracle Java Cloud Service Service Jobs Window

Oracle Java Cloud Service Service Jobs Window

To view the Oracle Java Cloud Service Service Jobs log:

You can filter jobs shown in the window by clicking the Filter icon in the toolbar to open the Jobs Filter, shown in Figure 5-2, "Jobs Filter Dialog".

Figure 5-2 Jobs Filter Dialog

Jobs Filter Dialog

5.3 Accessing the Oracle Java Cloud Service Instance Log

The Oracle Java Cloud Service Instance log, shown in Figure 5-3, "Oracle Java Cloud Service Instance Log", provides comprehensive information on the performance of services.

Figure 5-3 Oracle Java Cloud Service Instance Log

Oracle Java Cloud Service Instance Log

To view the Oracle Java Cloud Service Jobs log:

You can select the Filter icon in the toolbar to filter service instances using the Events Filter dialog, shown in Figure 5-4, "Events Filter".

Figure 5-4 Events Filter

Events Filter

5.4 Creating an Oracle Cloud Web Project

The Oracle Cloud Web Project wizard allows you to create a Dynamic Web Project with the required project facets, an Oracle Cloud instance, and a local Oracle WebLogic Server connection. Once the project has been created, you can add additional project facets.

To create an Oracle Cloud Web Project:

  1. From the main menu, select File > New > Other to open the New gallery.

  2. In the New gallery, select Oracle > Cloud > Oracle Cloud Web Project. Then click Next.

  3. On the next page of the wizard, specify a name and workspace for the project. Optionally, specify the location of a WAR file you want to import contents from.

  4. On the Cloud Target page, click Use existing cloud target to use a target you previously created, or click Define new cloud target to specify a new cloud target. If you are defining a new Cloud target, jump to step 6.

  5. Enter a name for the Oracle Cloud target in the Name field, or click Browse to select a name. Then click Finish. Your new project is created in the Project Explorer.


    Note:

    The following steps are only applicable if you selected the Define new cloud target option in step 4.


  6. Enter a name for the Oracle Cloud target. After you sign up for Oracle Cloud, you will receive information about the data center, the identity domain, and the service name which you enter here to establish a connection to your Oracle Java Service instance. If you do not have an Oracle Cloud account, click Open an Oracle Cloud account to open a Cloud account.

  7. Enter the Administrator username and Password you received when you signed up for Oracle Cloud.

  8. In Cloud SDK, enter or browse to the location of the top level directory, oracle-javacloud-sdk, for the Oracle Java Cloud Service SDK that you want to use. The directory must be a valid location. For more information on downloading the Cloud SDK, visit http://cloud.oracle.com.

  9. Click Test Connection to test your connection to Oracle Cloud.

  10. Optionally, click Perform whitelist scan prior to publish to locally test if your application will deploy successfully to Oracle Cloud.

    When all required details have been entered on the Cloud Target page, click Next.

  11. On the next page, specify a name for the Oracle Cloud target server, and click Next.

  12. On the Add and Remove page, specify the resources that are to be configured on the server, and click Finish.

5.5 Whitelist Scan

The whitelist scan feature enables you to locally ensure that your application is valid for deployment to Oracle Cloud. Whitelist scanning can be invoked in three ways:

5.6 Deploying to Oracle Cloud

OEPE enables you to deploy your project to Oracle Cloud or Oracle WLS, depending on your preference.

To deploy to Oracle Cloud, use one of the following methods: