About the Sample Application Deployed to an Oracle Java Cloud Service Instance

When you create an Oracle Java Cloud Service instance, a sample application is deployed automatically to the instance’s managed servers and started.

How to Access the Application

The easiest way to access the application, sample-app.war, is from the Oracle Java Cloud Service Instance Overview page. Click the link adjacent to Open Sample Application.

If you specified a custom Weblogic Cluster Path Prefix for the first cluster in a service instance, then this link will not work until you update the service instance. See Configure a Custom URL for the Sample Application.

To access the sample application without using the web console, enter the following URL:

https://IP_address:port/cluster_prefix/sample-app

For example:

https://192.0.2.1:443/sample-app

IP_address is the public IP address though which you access the application:

  • If your service instance has a user-managed load balancer, then use the IP address of the load balancer node.

  • If your service instance has an Oracle-managed load balancer, then use the IP address or domain name of the load balancer that was provisioned for your service instance.

  • Otherwise, use the IP address of the first node in your service instance.

port is the port number through which you access the application:

  • If your service instance has a load balancer or only one Managed Server, use port 443.

  • Otherwise, use port 8002.

The default cluster_prefix is "/", unless you specified a custom value like mycluster.

See:

What the Application Does

When you open the sample-app application, the following information is displayed:

  • Tweets—You can tweet to @OracleCloudZone and @OracleWebLogic.

  • Links— You can access documentation, demos, videos, blogs, FAQs, and related links.

How to Manage the Application

You can verify that the application is deployed and running by viewing the Deployments table in the WebLogic Server Administration Console. From the Deployments table, you can stop, start, and undeploy the application.