Verifying and Deploying the Patch Using WLST
You can validate and deploy the patch jar file using the WLST command-line tool. Use the sca_validatePatch and sca_patchComposite commands to validate and deploy the path file respectively.
For Non-Secure Mode
Use the following steps to verify and deploy the packaged jar (composite SAR) to runtime.
-
Use the
sca_validatePatchcommand to validate your patch jar file.You can use
help(‘sca_validatePatch’)to get detailed information on thesca_validatePatchcommand syntax and arguments.For example:
The preceding command validates if the sca_HelloWorld_patch.jar patch file can be successfully deployed to the my_soa_server SOA server runtime.sca_validatePatch('http://my_soa_server:8001', 'weblogic', 'welcome', '/home/sca_HelloWorld_patch.jar')The following message indicates that the patch was successfully validated:Composite patch has been validated successfully. -
Use the
sca_patchCompositecommand to deploy your patch jar file to runtime in non-secure mode.You can use
help(‘sca_patchComposite’)to get detailed information on thesca_patchCompositecommand syntax and arguments.For example:
The preceding command uses the sca_HelloWorld_patch.jar patch file to patch the HelloWorld composite on the my_soa_server runtime.sca_patchComposite('http://my_soa_server:8001', 'weblogic', 'welcome', '/home/sca_HelloWorld_patch.jar')The following message indicates that the patch was successfully applied:Composite has been patched successfully.
For Secure Mode
Use the following steps to verify and deploy the packaged jar (composite SAR) to runtime.
-
Use the
sca_validatePatchcommand to validate your patch jar file.You can use
help(‘sca_validatePatch’)to get detailed information on thesca_validatePatchcommand syntax and arguments.For example:
The preceding command validates if the sca_HelloWorld_patch.jar patch file can be successfully deployed to the my_soa_server SOA server runtime.sca_validatePatch('http://my_soa_server:8001', 'weblogic', 'welcome', '/home/sca_HelloWorld_patch.jar')The following message indicates that the patch was successfully validated:Composite patch has been validated successfully. -
Use the
nsca_patchCompositecommand to deploy your patch jar file to runtime in non-secure mode.You can use
help(‘sca_patchComposite’)to get detailed information on thesca_patchCompositecommand syntax and arguments.For example:
The preceding command uses the sca_HelloWorld_patch.jar patch file to patch the HelloWorld composite on the my_soa_server runtime.nsca_patchComposite('https://adc00001:8001', 'weblogic', 'welcome', '/tmp/sca_HelloWorld.jar', folder='myFolder', listenerPort='15695', mergeLogFile='/tmp/merge.log')The following message indicates that the patch was successfully applied:Composite has been patched successfully.