Sun. Oct 24th, 2021

Requirement: I have an Oracle ADF Fusion Web Application. I want to deploy this application in Oracle WebLogic Server.

Solution: We will use the COUNTRIES table of Oracle Database XE present in the HR schema. For solution to the above requirement follow the below steps:

Step 1: Create an Oracle ADF Fusion Web Application.

Step 2: Create an ADF Business Components from tables.The ADF Business Components should contain: AppModule, CountriesEO, and CountriesVO as shown below:

Step 3: Create a JDBC Generic Data Source in Oracle WebLogic Server for the HR Schema of the Oracle Database XE as described in the post Create a JDBC Generic Data Source in Oracle WebLogic Server. Details about the JDBC Generic Data Source is given below:

Step 4: Open AppModule > Go to Configurations tab >Edit the Datasource Name of the AppModuleLocal and AppModuleShared from java:comp/env/jdbc/HRDS to jdbc/HR as shown below:

Step 5: Go to Application Resources. Expand Connections > Database > Delete HR connection as shown below.

Step 6: Create a demo.jsf page under the ViewController project of our application. Now drag and drop CountriesVO1 collection from the Data Controls as an af:table on the demo.jsf page as shown below:

Step 7: Save all and run the application just to check if the application is running correctly.

Step 8: Right click application that is Deployment in this case, as Deployment is the name of my application > Deploy > New Deployment Profile as shown below:

Thus, we will get the below “Create Deployment Profile” popup, as shown below. Give the Deployment Profile Name as myDeploymentEAR, and click OK

On click of Ok we will get “Edit EAR Deployment Profile Properties” popup as shown below:

Click Application Assembly, and expand Model.jpr and ViewController.jpr as shown below:

Check Deployment_Model and Deployment_ViewController_webapp as shown below and click OK.

Step 9: Right click application that is Deployment in this case, as Deployment is the name of my application > Deploy >myDeploymentEAR as shown below.

Thus we will get Deploy myDeploymentEAR popup as shown below. Select Deploy to EAR and Click Next.

Click Finish. Thus the EAR(myDeploymentEAR.ear) gets created in the below file location(in this case it is C:/Users/Susanto/Desktop/ADFSecurity/Deployment/deploy/myDeploymentEAR.ear, it will be different location for your case).

Step 10: Open Oracle WebLogic Server using valid credentials. For login page of Oracle WebLogic Server type “http://localhost:7101/console” in the browser.

Step 11: Click on Deployments link as shown below:

Step 12: Click on Install button as shown below:

Step 13: Click on upload your file(s) link as shown below:

Step 14: Browse the Deployment Archive that is myDeploymentEAR.ear from C:/Users/Susanto/Desktop/ADFSecurity/Deployment/deploy/ as shown below:

Step 15: Click Next > Select myDeploymentEAR radio button and click Next

Step 16: Click Next > Click Next > Click Finish.

Step 17: Click Save.

Step 18: Type the below URL of the application in the browser (this will vary for your application): http://127.0.0.1:7101/Deployment-ViewController-context-root/faces/demo.jsf

Thus, we can see the page running as shown below:

Hence, the solution to our requirement.

If you like the post please comment, share, and do join me on Facebook. Please subscribe to my YouTube Channel for video tutorials.

Thanks & Regards,
Susanto Paul

 708 total views,  3 views today

By Susanto Paul

Susanto is an Oracle ACE, a qualified MCA, MBA, and a highly-skilled Senior Oracle Specialist. He is an enthusiastic Blogger and YouTuber who helps learners to solve their complex problems more efficiently. He has 9+ years of experience in multiple technologies like AWS, Oracle ADF, Oracle APEX, Oracle JET, Oracle VBCS, Oracle IDCS, Oracle PL/SQL, Oracle Integration Cloud, Java, JDBC, Servlets, JSP, Spring, Hibernate, HTML5, CSS3, JavaScript, TypeScript, NodesJS, Angular, MySQL, Oracle WebLogic Server, JUnit, JMeter, Selenium Web Driver, etc. He is a certified: Oracle Certified Professional Java SE 6 Programmer, Oracle ADF 11g Certified Implementation Specialist, Oracle Cloud Platform Application Integration 2020 Certified Specialist, Oracle Cloud Infrastructure Foundations 2020 Certified Associate, and Oracle Cloud Infrastructure Developer 2020 Certified Associate

Leave a Reply

Your email address will not be published. Required fields are marked *

satta king chart