Oracle Public Cloud Tools
You can develop applications in OEPE and deploy them to Oracle Public Cloud. For more information about Oracle Public Cloud or to open an Oracle Public Cloud account, visit http://cloud.oracle.com.
This document contains the following sections:
Creating an Oracle Public Cloud Web Project
The Oracle Public Cloud Web Project wizard allows you to create a Dynamic Web Project with the required project facets, an Oracle Public 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 Public Cloud Web Project:
- From the main menu, select File > New > Other to open the New gallery.
- In the New gallery, select Oracle > Public Cloud > Oracle Public Cloud Web Project. Then click Next.
- 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.
- 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.
- Enter a name for the Oracle Public Cloud target in the Name field.
- Populate the following fields with information you received when you opened your Oracle Public Cloud account: Service Group, Service instance, Administrator, Password, and Cloud SDK.
- Click Test Connection to test your connection to Oracle Public Cloud.
- Click Open an Oracle Public Cloud account to open a Cloud account.
- Optionally, click Perform whitelist scan prior to publish to locally test if your application will deploy successfully to Oracle Public Cloud.
A screenshot of the Oracle Public Cloud page is displayed below:
When all required details have been entered on the Cloud Target page, click Next.
- On the Local Target page, specify the name and location of your local Oracle WebLogic Server installation.
Configuring a Runtime Environment for Oracle Public Cloud
You can configure an Oracle Public Cloud instance using the Servers view.
To configure an Oracle Public Cloud runtime environment:
- In the Servers view, right-click and select New > Server from the context menu.
- In the server type tree, select Oracle > Oracle Public Cloud. Then click Next.
- On the Oracle Public Cloud 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.
- Enter a name for the Oracle Public Cloud target in the Name field.
- Populate the following fields with information you received when you opened your Oracle Public Cloud account: Service Group, Service instance, Administrator, Password, and Cloud SDK.
- Click Test Connection to test your connection to Oracle Public Cloud.
- Click Open an Oracle Public Cloud account to open a Cloud account.
- Optionally, click Perform whitelist scan prior to publish to locally test if your application will deploy successfully to Oracle Public Cloud.
When all required details have been entered on the Oracle Public Cloud page, click Finish.
In addition to add Oracle Public Cloud connection information, the Servers view also provides the following information:
- You can check the status of applications deployed on Oracle Public Cloud and select which projects in the workspace will be deployed. To discover deployed applications, expand the Oracle Public Cloud > Published Modules instance in the Servers view. You can also undeploy projects from this node.
- In the Servers view, right-click and select Open to view additional options. You can display logs for Oracle Public Cloud as well as launch the Oracle Java Cloud Service Control administrative console for more advanced configuration of the cloud instance.
Whitelist Scan
The whitelist scan feature enables you to locally ensure that your application is valid for deployment to Oracle Public Cloud. Three types of whitelist scan are supported:
- As you Type whitelist scan: Occurs on source files that are currently open in the workspace, for example, Java class or web page.
- Whitelist Builder: When you select File > Save, the Whitelist Builder validates all files in the project, and reports violations in the Markers View, Problems View, and Whitelist Problems View.
- On Demand whitelist scan: To perform an on demand whitelist scan, right-click the project in the Project Explorer and select Oracle Public Cloud Whitelist Scan. An On Demand whitelist scan adds an additional level of scanning to everything on the project build path, for example, jar files. This type of scan is also automatically performed before deployment. Because it is a more expansive operation, it does not occur automatically during file operations like edit, save, or build.
Deploying to Oracle Public Cloud
OEPE enables you to deploy your project to Oracle Public Cloud or Oracle WLS, depending on your preference.
To deploy to Oracle Public Cloud, use one of the following methods:
- Right-click the project you want to deploy, and select Run As > Run on Server. Then select Oracle Public Cloud on the Run on Server page and click Finish.
- Right-click the Oracle Public Cloud configuration in the Servers view and select Add and Remove to add the project you want to deploy to Oracle Public Cloud.