WebLogic deployment on OCI from Marketplace - Part 2

PradoshPradosh
3 min read

Introduction

The Part-1 of this blog describes the steps to install WebLogic from Oracle Market Place on OCI with JRF domain enabled. After the WebLogic is successfully installed in OCI, the first step to look at this is accessing the EM(Enterprise Monitor) or Console. Usually these URLs are accessed over port 7002 of the Admin Server. However, with WebLogic 12.4 version , EM/Console are not directly accessible and Oracle recommends using WebLogic Remote Console application. Advantage of using WebLogic Remote Console application is, using this multiple environments (weblogic domains) can be accessed over it.

So Lets jump into the detail of accessing the EM/Console using WebLogic Remote Console and deploy ADF Enterprise Applications.

Use Cases

In this blog, following will be covered

  1. Install the WebLogic Remote Console

  2. Access the WebLogic server which is deployed from market place on OCI

  3. Deploy the ADF Enterprise application and access the web application

Install the WebLogic Remote Console

The WebLogic Remote Console tool can be downloaded from the below github repo.

https://github.com/oracle/weblogic-remote-console/releases

In some organization, the organization does not allow to install the .exe files. So we can download the zip version and access through web.

After downloading and unzipping to a folder in my Windows machine.

You need JDK to run the below command. I have already installed JAVA JDK 24 in my machine and available as shown.

Open a command prompt (cmd) and check if Java JDK is installed or not.

To start the WebLogic Remote Console , use the below command

After this command, the WebLogic Remote Console is available on the below URL - http://localhost:8012/

Once you open the above URL , the below screen will be displayed

Configure the WebLogic which we have deployed on OCI.

To create a new Data source , from left menu click on Edit Tree and select Services→DataSources and then New and then configure by providing the details of the Database information like WebLogic 12.2 (Detail step of configuring a data source is not covered in this blog)

Deploy ADF Enterprise (.ear) application

To deploy the ADF Enterprise application to the server click on the Edit Tree from left menu and then App Deployments and then click on New.

Browse the .ear file from the local machine and deploy it to the WebLogic Cluster.

“Do not start application” option to be selected for On Deployment.

Click on “Create” button on top.

In Weblogic 12.2 , there is button to Activate Changes. Here there is no “Activate” button and you have to commit the changes by clicking on this shopping cart icon and then Commit changes.

Once Commit Changes, you can start the Application from Monitoring.

While starting the application, select application serves all requests option.

Now the application is deployed and accessible and can be accessed using the public IP of the Load Balancer.

How to Access the Sample Application

When we have installed the WebLogic server on OCI, a sample application is also installed by default. To access this sample web application, we have to first find out the Load Balancer public IP.

Login to the OCI tenant and look for Load Balancer or under Networking look for Load Balancer.

To open the Sample Application

https://{LB Public IP}/sample-app

https://129.210.1.2/sample-app

Conclusion

As the WebLogic domain is JRF enabled, other types of ADF based applications like .war , REST services , ADF Faces applications etc can be deployed in this domain. For production use case, CA certificates for a domain can be purchased and Load Balancer IP can be mapped to a domain name. In that case , instead of accessing the ADF applications over LB (Load Balancer) Public IP,they can be accessed over domain name

Example : https://oraclecenter.com/sample-app

0
Subscribe to my newsletter

Read articles from Pradosh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Pradosh
Pradosh