Before You Begin
This tutorial shows you how to create a custom instance in Oracle Java Cloud Service and associate it with an existing Oracle Database Cloud Service deployment. The custom instance you create will have a 2-node WebLogic Server cluster on Oracle Cloud Infrastructure Classic VMs, Oracle Traffic Director as a load balancer, with backup to object storage enabled.
This tutorial takes approximately 15 minutes to complete, excluding the wait time needed for provisioning to complete.
November 2017, Release 17.4
With Oracle Java Cloud Service, you can quickly create and manage a Java Platform, Enterprise Edition (Java EE) application environment in the cloud, without installing and configuring any software yourself. The environment is based on Oracle WebLogic Server, Oracle Coherence and Oracle Traffic Director, and is automatically integrated with Oracle Database Cloud Service.
What Do You Need?
- An active subscription to Oracle Java Cloud Service. See How to Begin with Oracle Java Cloud Service Subscriptions.
- An existing Oracle Database Cloud Service deployment with backups enabled. See Creating a Customized Database Deployment.
Launch the Service Creation Wizard
- Sign in to Oracle My Services application at https://cloud.oracle.com/en_US/sign-in.
- On the My Services Dashboard, locate the Storage tile and click its name. If this tile is not visible, click Customize Dashboard.
- Record the value of the REST Endpoint. For example,
https://foo.storage.oraclecloud.com/v1/MyService-bar. You will need this REST endpoint later when you configure backups.
- Click the Dashboard button at the top of the page.
- Locate the Java tile. Click the Action menu , and then select Open Service Console.
- If this is the first time you have accessed Java Cloud Service then you may be presented with a Welcome screen. If this happens then you can continue to the console by clicking Go to Console.
- Click Create Service and then select the Java Cloud Service option.
Configure Basic Service Information
- Enter a unique Service Name for your Java Cloud Service instance. This tutorial uses the name
- If it is not configured by default, enter your email address in Notification Email.
- For Software Edition, select Enterprise Edition with Coherence.
- If the Region field is displayed, accept the default option No Preference.
- Accept the default values for the remaining fields on this page:
Field Value Service Level Oracle Java Cloud Service Software Release Oracle WebLogic Server 12c (12.2.x) Metering Frequency Hourly
- Click Next.
Configure Service Details
- Click the Advanced tab.
- Accept the default Compute Shape, OC3 (1 OCPU, 7.5GB RAM).
- Click Edit next to the SSH Public Key field.
- Select the radio button Create a New Key and then click Enter.
- Click Download to save the file
sshkeybundle.zipto your local machine.
- Click Done.
- Select the Enable access to Administration Consoles checkbox.
- Enter these values in the WebLogic Access section:
Field Value Local Administrator Username weblogic Password Enter a suitable password, such as
Confirm Password Enter the same password to confirm.
- For Provision Data Grid Cluster in the Coherence Data Tier section, select Yes.
- Accept the detault values in the remaining fields.
Field Value Compute Shape OC3 - 1.0 OCPU, 7.5GB RAM Cluster Size 1 Managed Servers Per Node 1
Configure the Database and Load Balancer
- In the Database Configuration section, use the Database Instance Name field to select an existing Oracle Database Cloud Service deployment.
- Enter values for the remaining fields in this section. If necessary, contact your database administrator:
Field Value PDB Name If you do not want to use the default Pluggable Database (PDB) in this deployment, enter a different value Administrator Username Enter a database user with system privileges, so that Java Cloud Service can create the required schemas. For example,
Password Enter the password for this database user. Add Application Schema Accept No Application Schema added.
- In the Load Balancer section, for the Provision Local Load Balancer field, select Yes.
- Accept the default values for the remaining Load Balancer fields:
Field Value Compute Shape OC3 (1 OCPU, 7.5GB RAM) Add Another Active OTD Node Leave check box unchecked. Load Balancer Policy Least Connection Count
- Set the Backup Destination field to Both Cloud Storage and Local Storage.
- For Cloud Storage Container, enter the URL
Use the Oracle Storage Cloud REST endpoint that you identified earlier. For example:
- Enter the user name and password of an Oracle Cloud user with the Oracle Cloud Infrastructure Object Storage Container Administrator role in the Username and Password fields, respectively.
The user name and password you used to log into Oracle Cloud will normally have the correct permissions required to create the container.
- Select the Create Cloud Storage Container checkbox.
Complete the Service Creation
- Click Next.
- On the Confirmation page, review your selections and click Create.
When you return to the Java Cloud Service console, you will see your new service instance listed. It will have a status of "Creating Service".
- Periodically refresh this page until the service instance creation is completed. You will also receive an email notification when the instance is ready.
- Click the instance name, MyJCS, to view the Instance Overview page.
Want to Learn More?
- Custom Instance documentation
- QuickStart Instance documentation
- Creating a Database Deployment documentation
- Tutorial: Creating an instance with QuickStart
- Tutorial: Deploy an application
- More tutorials