Search code examples
weblogicwlst

How to specify "Copy this application onto every target of me" option while deploying using WLST deploy() command?


I want to remove dependency on the location of EAR file while deploying it into WebLogic Server using WLST scripts.

While doing manually we can select the radio button - Copy this application onto every target for me in the Source accessibility section of Install Application Assistant.

Now the question is: how to achieve the same using WLST deploy command?

Thank you, Chaitanya


Solution

  • Got this myself!!!

    While doing manually I found out in the Summary section of the last page of Install Application Assistant that Copy this application to every target for me
    is mentioned against Staging mode:

    So I checked the WLST manual and found out that deploy function accepts stageMode parameter and the value of STAGE for stageMode parameter means what I want!

    Check Server Staging Modes section at http://download.oracle.com/docs/cd/E13222_01/wls/docs90/deployment_api/api_intro.html#1021695

    Regards Chaitanya