Access the Sample Application
By default when you create an Oracle WebLogic Server for OCI domain, sample applications are deployed automatically.
How to Access the Application
To access the sample-app
application in a browser,
enter a URL that's similar to the following:
https://IP_address:port/sample-app
The IP address and port you'll use depends on whether your domain is in a public or private subnet, and whether a load balancer is configured. See:
- Access the Sample Application Through a Public Load Balancer
- Access the Sample Application Through a Private Load Balancer
- Access the Sample Application Without a Load Balancer
- Access the Sample Application in a Private Subnet
If your domain is configured to use Oracle Identity Cloud
Service, then a second application is deployed named idcs-sample-app
.
See Access the Sample Application Using Identity Cloud Service.
What the Application Does
From the sample-app
application, you can find
documentation, tutorials, and other resources for Oracle WebLogic Server
for OCI in the Oracle Help Center.
Use the idcs-sample-app
application to test the
integration with Oracle Identity Cloud
Service. After signing in, the application displays information about the current
user.
How to Manage the Application
You can verify that the sample applications are 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 applications.
Access the Sample Application Through a Public Load Balancer
If your Oracle WebLogic Server for OCI domain is associated with a public load balancer, use the public IP address of the load balancer to access the sample application.
Access the Sample Application Through a Private Load Balancer
If your Oracle WebLogic Server for OCI domain is in a private subnet and is associated with a private load balancer, it is not accessible from the public Internet.
To access the sample application, you can use the bastion instance that's created on a public subnet and dynamic port forwarding with a secure shell (SSH) utility.
By opening an SSH tunnel with dynamic port forwarding, the SSH client becomes a Socket Secure (SOCKS) proxy listening on the port you specify. All traffic that routes to the proxy port is forwarded to its destination through the proxy server. Then when you configure your browser to use a SOCKS proxy, you can access the load balancer's private IP address.
Alternatively, you can configure a virtual private network (VPN) between your VCN and your on-premise data center. See VPN Connect in the Oracle Cloud Infrastructure documentation.
Access the Sample Application Without a Load Balancer
If your Oracle WebLogic Server for OCI domain is not associated with a load balancer, use the IP address of a Managed Server node to access the sample application.
Note:
This procedure does not apply to a domain created in a private subnet. See Access the Sample Application in a Private Subnet.Access the Sample Application in a Private Subnet
Oracle WebLogic Server compute instances assigned to a private subnet are not accessible from the public Internet.
If your private domain is configured with a load balancer, see:
- Access the Sample Application Through a Public Load Balancer
- Access the Sample Application Through a Private Load Balancer
To access the sample application deployed to a private domain without a load balancer, you can use the bastion instance that's created on a public subnet and dynamic port forwarding with a secure shell (SSH) utility.
By opening an SSH tunnel with dynamic port forwarding, the SSH client becomes a Socket Secure (SOCKS) proxy listening on the port you specify. All traffic that routes to the proxy port is forwarded to its destination through the proxy server. Then when you configure your browser to use a SOCKS proxy, you can access the domain's private IP address.
Access the Sample Application Using Identity Cloud Service
If your Oracle WebLogic Server for OCI domain is integrated with Oracle Identity Cloud Service, then a second sample application is automatically deployed so that you can test this integration.
The application is protected by Oracle Identity Cloud Service, so you must sign in as a valid user in Oracle Identity Cloud Service.
A domain that uses Oracle Identity Cloud Service for authentication always includes a load balancer. This procedure applies to a domain created in a public or private subnet.
Part of the application requires the user to be a member of a group
named SampleAppAdmin
. Create this group in Oracle Identity Cloud
Service, and add at least one user to the group. See Create Groups in Oracle Cloud
Infrastructure documentation.
To protect other applications in the domain, see Secure a Domain Using Identity Cloud Service.