In my previous blog, i explained how to dynamically apply skin changes to JDeveloper’s Embedded WebLogic server. If you try to perform same steps to apply skin changes to application deployed on your Middleware environment, it will not work. This is due to this Note in Skin User Guide.

This is necessary as deploy skin changes to Skin Managed Bean, updates skin file in File System. And in most cases you will deploy .ear file in your Middleware environment. If it is necessary to apply (mostly in Development environment) skin changes dynamically, deploy your ear file in exploded format.

For example, i have FusionHRDemo.ear file which has HRUI.war module. Before installing this application in WebLogic, i can explode this ear file using commands shown below.

Create folder with same name as your EAR file. And cd in that folder.

mkdir FusionHRDemo.ear
cd FusionHRDemo.ear

Now, explode ear file first.

jar -xvf D:jdevwsjdev121200blogmyworkFusionHRDemodeployFusionHRDemo.ear

Now, we need to explode HRUI.war module as well. First create dummy folder and cd in that folder. Then we will rename this folder to HRUI.war. As we are already in ear folder, this will be created under it. 

mkdir war
cd war

Now extract HRUI.war module, which is in parent folder, so use .. notation.

jar -xvf ../HRUI.war

Now go back to parent folder and remove HRUI.war file and rename war folder to HRUI.war.

cd ..
del HRUI.war
move war HRUI.war

If you are using Linux, you can use matching shell commands.

Now, you can install exploded ear folder using WebLogic Console or WLST. And running application will be able to accept dynamic skin changes using Skin Managed Bean.

Chandresh Patel

I have been working with Java EE technologies since 2000. After implementing IBM WebSphere and custom framework solutions, my past 10 years have been focused on Oracle Fusion Middleware such as WebLogic, ADF, WebCenter and Coherence. I have been part of many automation projects in the past and have a passion for automation capabilities to help our customers deliver software faster and with higher quality. In my current role as a Principal Architect at Flexagon, I am driving the FlexDeploy product strategy and development to build DevOps/CI/CD features that help our customers.

More posts by Chandresh Patel
    

Leave a Reply

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