17060. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/11/2017 10:47:23 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

17060.1 Files compared

# Location File Last Modified
1 Tue Apr 11 15:47:23 2017 UTC
2 PS_PPS_Weblogic_Domain\install\domain_template.jar startscript.xml Fri Oct 7 07:11:04 2016 UTC

17060.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 7972
Removed 0 0

17060.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

17060.4 Active regular expressions

No regular expressions were active.

17060.5 Comparison detail

        1   <?xml 
        2     version="1 .0" 
        3     encoding=" UTF-8"
        4   ?>
        5  
        6   <scripts>
        7             
        8     <script 
        9      name="star tWebLogic"  
        10      version="3
        11      path="bin"  
        12      overwrite= "false" 
        13      unixFileSe p="${CLASS PATHSEP}"
        14     >
        15                       
        16      <function 
        17       name="stop All"
        18      >
        19                                 
        20       <comment 
        21        message="W e separate  the stop  commands i nto a func tion so we  are able  to use the  trap comm and in Uni x (calling  a functio n) to stop  these ser vices"
        22       />
        23                                 
        24       <if>
        25                                           
        26        <test 
        27         type="stri ng" 
        28         not="true"
        29        >
        30                                                    
        31         <operand 
        32          value="X%A LREADY_STO PPED%"
        33         />
        34                                                    
        35         <operand 
        36          value="X"
        37         />
        38                                            
        39        </test>
        40                                           
        41        <then>
        42                                                    
        43         <exit/>
        44                                            
        45        </then>
        46                                  
        47       </if>
        48                                 
        49       <comment 
        50        message="S TOP DERBY  (only if w e started  it)"
        51       />
        52                                 
        53       <if>
        54                                           
        55        <test 
        56         type="stri ng"
        57        >
        58                                                    
        59         <operand 
        60          value="%DE RBY_FLAG%"
        61         />
        62                                                    
        63         <operand 
        64          value="tru e"
        65         />
        66                                            
        67        </test>
        68                                           
        69        <then>
        70                                                    
        71         <echo 
        72          message="S topping De rby server ..."
        73         />
        74                                                    
        75         <exec 
        76          name="Stop  Derby" 
        77          type="scri pt"
        78         >
        79                                                              
        80          <cmd 
        81           start="%WL _HOME%\com mon\derby\ bin\stopNe tworkServe r" 
        82           min="false "
        83          />
        84                                                              
        85          <redirect 
        86           file="%DOM AIN_HOME%\ derbyShutd own.log" 
        87           tostream=" 1" 
        88           fromstream ="2"
        89          />
        90                                                     
        91         </exec>
        92                                                    
        93         <marker 
        94          name="stop NetworkSer ver" 
        95          type="exec
        96          action="in sert"
        97         />
        98                                                    
        99         <echo 
        100          message="D erby serve r stopped. "
        101         />
        102                                            
        103        </then>
        104                                  
        105       </if>
        106                                 
        107       <marker 
        108        name="Stop  Portal Se archEngine
        109        type="exec
        110        action="in sert"
        111       />
        112                                 
        113       <setenv 
        114        name="ALRE ADY_STOPPE D"
        115       >
        116                                           
        117        <value>
        118         true
        119        </value>
        120                                  
        121       </setenv>
        122                        
        123      </function >
        124                       
        125      <function 
        126       name="clas sCaching"
        127      >
        128                                 
        129       <echo 
        130        message="C lass cachi ng enabled ..."
        131       />
        132                                 
        133       <setenv 
        134        name="JAVA _OPTIONS" 
        135        scope="glo bal"
        136       >
        137                                           
        138        <value>
        139         %JAVA_OPTI ONS% -Dlau nch.main.c lass=${SER VER_CLASS}  -Dlaunch. class.path =&quot;${C LASSPATH}& quot; -Dla unch.compl ete=weblog ic.store.i nternal.Lo ckManagerI mpl -cp %W L_HOME%\se rver\lib\p cl2.jar
        140        </value>
        141                                  
        142       </setenv>
        143                                 
        144       <setenv 
        145        name="SERV ER_CLASS"
        146       >
        147                                           
        148        <value>
        149         com.oracle .classload er.launch. Launcher
        150        </value>
        151                                  
        152       </setenv>
        153                        
        154      </function >
        155                       
        156      <comment>
        157                                 
        158       <value>
        159        ********** ********** ********** ********** ********** ********** ********** ***
        160       </value>
        161                                 
        162       <value>
        163        This scrip t is used  to start W ebLogic Se rver for t his domain .
        164       </value>
        165                                 
        166       <value>
        167       </value>
        168                                 
        169       <value>
        170        To create  your own s tart scrip t for your  domain, y ou can ini tialize th e
        171       </value>
        172                                 
        173       <value>
        174        environmen t by calli ng @USERDO MAINHOME\s etDomainEn v.
        175       </value>
        176                                 
        177       <value>
        178       </value>
        179                                 
        180       <value>
        181        setDomainE nv initial izes or ca lls commEn v to initi alize the  following  variables:
        182       </value>
        183                                 
        184       <value>
        185       </value>
        186                                 
        187       <value>
        188        BEA_HOME        - The  BEA home  directory  of your We bLogic ins tallation.
        189       </value>
        190                                 
        191       <value>
        192        JAVA_HOME       - Loc ation of t he version  of Java u sed to sta rt WebLogi c
        193       </value>
        194                                 
        195       <value>
        196                          Ser ver.
        197       </value>
        198                                 
        199       <value>
        200        JAVA_VENDO R    - Ven dor of the  JVM (i.e.  BEA, HP,  IBM, Sun,  etc.)
        201       </value>
        202                                 
        203       <value>
        204        PATH            - JDK  and WebLo gic direct ories are  added to s ystem path .
        205       </value>
        206                                 
        207       <value>
        208        WEBLOGIC_C LASSPATH
        209       </value>
        210                                 
        211       <value>
        212                        - Cla sspath nee ded to sta rt WebLogi c Server.
        213       </value>
        214                                 
        215       <value>
        216        PATCH_CLAS SPATH - Cl asspath us ed for pat ches
        217       </value>
        218                                 
        219       <value>
        220        PATCH_LIBP ATH  - Lib rary path  used for p atches
        221       </value>
        222                                 
        223       <value>
        224        PATCH_PATH      - Pat h used for  patches
        225       </value>
        226                                 
        227       <value>
        228        WEBLOGIC_E XTENSION_D IRS - Exte nsion dirs  for WebLo gic classp ath patch
        229       </value>
        230                                 
        231       <value>
        232        JAVA_VM         - The  java arg  specifying  the VM to  run.  (i. e.
        233       </value>
        234                                 
        235       <value>
        236                        - ser ver, -hots pot, etc.)
        237       </value>
        238                                 
        239       <value>
        240        USER_MEM_A RGS  - The  variable  to overrid e the stan dard memor y argument s
        241       </value>
        242                                 
        243       <value>
        244                          pas sed to jav a.
        245       </value>
        246                                 
        247       <value>
        248        PRODUCTION _MODE - Th e variable  that dete rmines whe ther Weblo gic Server  is starte d in produ ction mode .
        249       </value>
        250                                 
        251       <value>
        252        DERBY_HOME  - Derby h ome direct ory.
        253       </value>
        254                                 
        255       <value>
        256        DERBY_CLAS SPATH
        257       </value>
        258                                 
        259       <value>
        260                        - Cla sspath nee ded to sta rt Derby.
        261       </value>
        262                                 
        263       <value>
        264       </value>
        265                                 
        266       <value>
        267        Other vari ables used  in this s cript incl ude:
        268       </value>
        269                                 
        270       <value>
        271        SERVER_NAM E    - Nam e of the w eblogic se rver.
        272       </value>
        273                                 
        274       <value>
        275        JAVA_OPTIO NS   - Jav a command- line optio ns for run ning the s erver. (Th ese
        276       </value>
        277                                 
        278       <value>
        279                          wil l be tagge d on to th e end of t he JAVA_VM  and
        280       </value>
        281                                 
        282       <value>
        283                          MEM _ARGS)
        284       </value>
        285                                 
        286       <value>
        287        SAVE_MEMOR Y    - Put  server in  a mode wh ere it is  frugal wit h memory,  potentiall y sacrific ing perfor mance to d o so.
        288       </value>
        289                                 
        290       <value>
        291        CLASS_CACH E    - Ena ble class  caching of  system cl asspath.
        292       </value>
        293                                 
        294       <value>
        295        PROXY_SETT INGS - The se are tag ged on to  the end of  the JAVA_ OPTIONS. T his variab le is depr ecated and  should no t
        296       </value>
        297                                 
        298       <value>
        299                          be  used. Inst ead use JA VA_OPTIONS
        300       </value>
        301                                 
        302       <value>
        303       </value>
        304                                 
        305       <value>
        306        For additi onal infor mation, re fer to &qu ot;Adminis tering Ser ver Startu p and Shut down for O racle WebL ogic Serve r&quot;
        307       </value>
        308                                 
        309       <value>
        310        ********** ********** ********** ********** ********** ********** ********** ***
        311       </value>
        312                        
        313      </comment>
        314                       
        315      <blockinse rt 
        316       name="umas k_section"  
        317       os="unix"
        318      >
        319                                 
        320       <exec 
        321        name="umas k" 
        322        type="prog ram"
        323       >
        324                                           
        325        <cmd 
        326         start="uma sk 027" 
        327         min="false "
        328        />
        329                                  
        330       </exec>
        331                        
        332      </blockins ert>
        333                       
        334      <marker 
        335       name="sect ion_marker _1" 
        336       type="bloc kinsert" 
        337       action="ap pend"
        338      />
        339                       
        340      <comment 
        341       message="C all setDom ainEnv her e."
        342      />
        343                       
        344      <setenv 
        345       name="DOMA IN_HOME" 
        346       shorten="t rue"
        347      >
        348                                 
        349       <value>
        350        @USERDOMAI N_HOME
        351       </value>
        352                        
        353      </setenv>
        354                       
        355      <exec 
        356       name="setD omainEnv" 
        357       type="scri pt"
        358      >
        359                                 
        360       <cmd 
        361        start="%DO MAIN_HOME% \bin\setDo mainEnv" 
        362        min="false
        363        source="tr ue"
        364       />
        365                                 
        366       <params>
        367                                           
        368        <value>
        369         %*
        370        </value>
        371                                  
        372       </params>
        373                        
        374      </exec>
        375                       
        376      <marker 
        377       name="sect ion_marker _2" 
        378       type="bloc kinsert" 
        379       action="ap pend"
        380      />
        381                       
        382      <marker 
        383       name="sect ion_marker _3" 
        384       type="bloc kinsert" 
        385       action="ap pend"
        386      />
        387                       
        388      <setenv 
        389       name="SAVE _JAVA_OPTI ONS"
        390      >
        391                                 
        392       <value>
        393        %JAVA_OPTI ONS%
        394       </value>
        395                        
        396      </setenv>
        397                       
        398      <setenv 
        399       name="SAVE _CLASSPATH "
        400      >
        401                                 
        402       <value>
        403        %CLASSPATH %
        404       </value>
        405                        
        406      </setenv>
        407                       
        408      <marker 
        409       name="sect ion_marker _4" 
        410       type="bloc kinsert" 
        411       action="ap pend"
        412      />
        413                       
        414      <comment 
        415       message="S tart Derby "
        416      />
        417                       
        418      <marker 
        419       name="DERB Y_DEBUG_LE VEL" 
        420       type="sete nv" 
        421       action="re place"
        422      />
        423                       
        424      <setenv 
        425       name="DERB Y_DEBUG_LE VEL" 
        426       scope="loc al"
        427      >
        428                                 
        429       <value>
        430        0
        431       </value>
        432                        
        433      </setenv>
        434                       
        435      <marker 
        436       name="sect ion_marker _5" 
        437       type="bloc kinsert" 
        438       action="ap pend"
        439      />
        440                       
        441      <if>
        442                                 
        443       <test 
        444        type="stri ng"
        445       >
        446                                           
        447        <operand 
        448         value="%DE RBY_FLAG%"
        449        />
        450                                           
        451        <operand 
        452         value="tru e"
        453        />
        454                                  
        455       </test>
        456                                 
        457       <then>
        458                                           
        459        <exec 
        460         name="Derb y" 
        461         type="scri pt"
        462        >
        463                                                    
        464         <cmd 
        465          start="%WL _HOME%\com mon\derby\ bin\startN etworkServ er" 
        466          min="false "
        467         />
        468                                                    
        469         <redirect 
        470          file="%DOM AIN_HOME%\ derby.log"  
        471          tostream=" 1" 
        472          fromstream ="2"
        473         />
        474                                            
        475        </exec>
        476                                           
        477        <marker 
        478         name="star tNetworkSe rver" 
        479         type="exec
        480         action="in sert"
        481        />
        482                                  
        483       </then>
        484                        
        485      </if>
        486                       
        487      <marker 
        488       name="sect ion_marker _6" 
        489       type="bloc kinsert" 
        490       action="ap pend"
        491      />
        492                       
        493      <marker 
        494       name="Star t Portal S earchEngin e" 
        495       type="bloc kinsert" 
        496       action="in sert" 
        497       merge="tru e"
        498      />
        499                       
        500      <setenv 
        501       name="JAVA _OPTIONS"
        502      >
        503                                 
        504       <value>
        505        %SAVE_JAVA _OPTIONS%
        506       </value>
        507                        
        508      </setenv>
        509                       
        510      <setenv 
        511       name="SAVE _JAVA_OPTI ONS"
        512      >
        513                                 
        514       <value>
        515       </value>
        516                        
        517      </setenv>
        518                       
        519      <setenv 
        520       name="CLAS SPATH"
        521      >
        522                                 
        523       <value>
        524        %SAVE_CLAS SPATH%
        525       </value>
        526                        
        527      </setenv>
        528                       
        529      <setenv 
        530       name="SAVE _CLASSPATH "
        531      >
        532                                 
        533       <value>
        534       </value>
        535                        
        536      </setenv>
        537                       
        538      <marker 
        539       name="sect ion_marker _7" 
        540       type="bloc kinsert" 
        541       action="ap pend"
        542      />
        543                       
        544      <trap 
        545       signal="1  2 3 15"
        546      >
        547                                 
        548       <call 
        549        name="stop All"
        550       />
        551                        
        552      </trap>
        553                       
        554      <if>
        555                                 
        556       <test 
        557        type="stri ng"
        558       >
        559                                           
        560        <operand 
        561         value="%PR ODUCTION_M ODE%"
        562        />
        563                                           
        564        <operand 
        565         value="tru e"
        566        />
        567                                  
        568       </test>
        569                                 
        570       <then>
        571                                           
        572        <setenv 
        573         name="WLS_ DISPLAY_MO DE"
        574        >
        575                                                    
        576         <value>
        577          Production
        578         </value>
        579                                            
        580        </setenv>
        581                                  
        582       </then>
        583                                 
        584       <else>
        585                                           
        586        <setenv 
        587         name="WLS_ DISPLAY_MO DE"
        588        >
        589                                                    
        590         <value>
        591          Developmen t
        592         </value>
        593                                            
        594        </setenv>
        595                                  
        596       </else>
        597                        
        598      </if>
        599                       
        600      <if>
        601                                 
        602       <test 
        603        type="stri ng" 
        604        not="true"
        605       >
        606                                           
        607        <operand 
        608         value="%WL S_USER%"
        609        />
        610                                           
        611        <operand 
        612         value=""
        613        />
        614                                  
        615       </test>
        616                                 
        617       <then>
        618                                           
        619        <setenv 
        620         name="JAVA _OPTIONS" 
        621         delim=" "
        622        >
        623                                                    
        624         <value>
        625          %JAVA_OPTI ONS%
        626         </value>
        627                                                    
        628         <value>
        629          -Dweblogic .managemen t.username =%WLS_USER %
        630         </value>
        631                                            
        632        </setenv>
        633                                  
        634       </then>
        635                        
        636      </if>
        637                       
        638      <if>
        639                                 
        640       <test 
        641        type="stri ng" 
        642        not="true"
        643       >
        644                                           
        645        <operand 
        646         value="%WL S_PW%"
        647        />
        648                                           
        649        <operand 
        650         value=""
        651        />
        652                                  
        653       </test>
        654                                 
        655       <then>
        656                                           
        657        <setenv 
        658         name="JAVA _OPTIONS" 
        659         delim=" "
        660        >
        661                                                    
        662         <value>
        663          %JAVA_OPTI ONS%
        664         </value>
        665                                                    
        666         <value>
        667          -Dweblogic .managemen t.password =%WLS_PW%
        668         </value>
        669                                            
        670        </setenv>
        671                                  
        672       </then>
        673                        
        674      </if>
        675                       
        676      <marker 
        677       name="sect ion_marker _8" 
        678       type="bloc kinsert" 
        679       action="ap pend"
        680      />
        681                       
        682      <marker 
        683       name="MEDR EC_WEBLOGI C_CLASSPAT H" 
        684       type="sete nv" 
        685       action="in sert"
        686      />
        687                       
        688      <if>
        689                                 
        690       <test 
        691        type="stri ng" 
        692        not="true"
        693       >
        694                                           
        695        <operand 
        696         value="%ME DREC_WEBLO GIC_CLASSP ATH%"
        697        />
        698                                           
        699        <operand 
        700         value=""
        701        />
        702                                  
        703       </test>
        704                                 
        705       <then>
        706                                           
        707        <if>
        708                                                    
        709         <test 
        710          type="stri ng" 
        711          not="true"
        712         >
        713                                                              
        714          <operand 
        715           value="%CL ASSPATH%"
        716          />
        717                                                              
        718          <operand 
        719           value=""
        720          />
        721                                                     
        722         </test>
        723                                                    
        724         <then>
        725                                                              
        726          <setenv 
        727           name="CLAS SPATH" 
        728           filterEmpt yVal="true "
        729          >
        730                                                                        
        731           <value>
        732            %CLASSPATH %
        733           </value>
        734                                                                        
        735           <value>
        736            %MEDREC_WE BLOGIC_CLA SSPATH%
        737           </value>
        738                                                               
        739          </setenv>
        740                                                     
        741         </then>
        742                                                    
        743         <else>
        744                                                              
        745          <setenv 
        746           name="CLAS SPATH" 
        747           filterEmpt yVal="true "
        748          >
        749                                                                        
        750           <value>
        751            %MEDREC_WE BLOGIC_CLA SSPATH%
        752           </value>
        753                                                               
        754          </setenv>
        755                                                     
        756         </else>
        757                                            
        758        </if>
        759                                  
        760       </then>
        761                        
        762      </if>
        763                       
        764      <marker 
        765       name="sect ion_marker _9" 
        766       type="bloc kinsert" 
        767       action="ap pend"
        768      />
        769                       
        770      <echo 
        771       message=". "
        772      />
        773                       
        774      <echo 
        775       message=". "
        776      />
        777                       
        778      <echo 
        779       message="J AVA Memory  arguments : %MEM_ARG S%"
        780      />
        781                       
        782      <echo 
        783       message=". "
        784      />
        785                       
        786      <echo 
        787       message="C LASSPATH=% CLASSPATH% "
        788      />
        789                       
        790      <echo 
        791       message=". "
        792      />
        793                       
        794      <echo 
        795       message="P ATH=%PATH% "
        796      />
        797                       
        798      <echo 
        799       message=". "
        800      />
        801                       
        802      <echo 
        803       message="* ********** ********** ********** ********** ********** "
        804      />
        805                       
        806      <echo 
        807       message="*   To start  WebLogic  Server, us e a userna me and   * "
        808      />
        809                       
        810      <echo 
        811       message="*   password  assigned  to an admi n-level us er.  For * "
        812      />
        813                       
        814      <echo 
        815       message="*   server a dministrat ion, use t he WebLogi c Server * "
        816      />
        817                       
        818      <echo 
        819       message="*   console  at http:// hostname:p ort/consol e        * "
        820      />
        821                       
        822      <echo 
        823       message="* ********** ********** ********** ********** ********** "
        824      />
        825                       
        826      <marker 
        827       name="sect ion_marker _12" 
        828       type="bloc kinsert" 
        829       action="ap pend"
        830      />
        831                       
        832      <marker 
        833       name="sect ion_marker _13" 
        834       type="bloc kinsert" 
        835       action="ap pend"
        836      />
        837                       
        838      <comment 
        839       message="S AVE MEMORY "
        840      />
        841                       
        842      <if>
        843                                 
        844       <test 
        845        type="file
        846        unixScript Ext=".sh"
        847       >
        848                                           
        849        <operand 
        850         value="%WL _HOME%/ser ver/bin/sa veMemory"
        851        />
        852                                  
        853       </test>
        854                                 
        855       <then>
        856                                           
        857        <exec 
        858         name="setS tartupEnv"  
        859         type="scri pt"
        860        >
        861                                                    
        862         <cmd 
        863          start="%WL _HOME%/ser ver/bin/sa veMemory" 
        864          min="false
        865          source="tr ue"
        866         />
        867                                            
        868        </exec>
        869                                  
        870       </then>
        871                        
        872      </if>
        873                       
        874      <comment 
        875       message="C LASS CACHI NG"
        876      />
        877                       
        878      <if>
        879                                 
        880       <test 
        881        type="stri ng"
        882       >
        883                                           
        884        <operand 
        885         value="%CL ASS_CACHE% "
        886        />
        887                                           
        888        <operand 
        889         value="tru e"
        890        />
        891                                  
        892       </test>
        893                                 
        894       <then>
        895                                           
        896        <call 
        897         name="clas sCaching"
        898        />
        899                                  
        900       </then>
        901                        
        902      </if>
        903                       
        904      <marker 
        905       name="sect ion_marker _14" 
        906       type="bloc kinsert" 
        907       action="ap pend"
        908      />
        909                       
        910      <comment 
        911       message="S TART WEBLO GIC"
        912      />
        913                       
        914      <echo 
        915       message="s tarting we blogic wit h Java ver sion:"
        916      />
        917                       
        918      <exec 
        919       name="Java  Version" 
        920       type="prog ram"
        921      >
        922                                 
        923       <cmd 
        924        start="%JA VA_HOME%\b in\java" 
        925        end="-vers ion" 
        926        min="false "
        927       />
        928                                 
        929       <params>
        930                                           
        931        <value>
        932         %JAVA_VM%
        933        </value>
        934                                  
        935       </params>
        936                        
        937      </exec>
        938                       
        939      <marker 
        940       name="sect ion_marker _15" 
        941       type="bloc kinsert" 
        942       action="ap pend"
        943      />
        944                       
        945      <if>
        946                                 
        947       <test 
        948        type="stri ng"
        949       >
        950                                           
        951        <operand 
        952         value="%WL S_REDIRECT _LOG%"
        953        />
        954                                           
        955        <operand 
        956         value=""
        957        />
        958                                  
        959       </test>
        960                                 
        961       <then>
        962                                           
        963        <echo 
        964         message="S tarting WL S with lin e:"
        965        />
        966                                           
        967        <echo 
        968         message="% JAVA_HOME% \bin\java  %JAVA_VM%  %MEM_ARGS%  -Dweblogi c.Name=%SE RVER_NAME%  -Djava.se curity.pol icy=%WLS_P OLICY_FILE % %JAVA_OP TIONS% %PR OXY_SETTIN GS% %SERVE R_CLASS%"
        969        />
        970                                           
        971        <exec 
        972         name="star tserver" 
        973         type="prog ram"
        974        >
        975                                                    
        976         <cmd 
        977          start="%JA VA_HOME%\b in\java" 
        978          end="%SERV ER_CLASS%"  
        979          min="false "
        980         />
        981                                                    
        982         <params>
        983                                                              
        984          <value>
        985           %JAVA_VM%
        986          </value>
        987                                                              
        988          <value>
        989           %MEM_ARGS%
        990          </value>
        991                                                              
        992          <value>
        993           -Dweblogic .Name=%SER VER_NAME%
        994          </value>
        995                                                              
        996          <value>
        997           -Djava.sec urity.poli cy=%WLS_PO LICY_FILE%
        998          </value>
        999                                                              
        1000          <value>
        1001           %JAVA_OPTI ONS%
        1002          </value>
        1003                                                              
        1004          <value>
        1005           %PROXY_SET TINGS%
        1006          </value>
        1007                                                     
        1008         </params>
        1009                                            
        1010        </exec>
        1011                                  
        1012       </then>
        1013                                 
        1014       <else>
        1015                                           
        1016        <echo 
        1017         message="R edirecting  output fr om WLS win dow to %WL S_REDIRECT _LOG%"
        1018        />
        1019                                           
        1020        <exec 
        1021         name="star tserver" 
        1022         type="prog ram"
        1023        >
        1024                                                    
        1025         <cmd 
        1026          start="%JA VA_HOME%\b in\java" 
        1027          end="%SERV ER_CLASS%"  
        1028          min="false "
        1029         />
        1030                                                    
        1031         <params>
        1032                                                              
        1033          <value>
        1034           %JAVA_VM%
        1035          </value>
        1036                                                              
        1037          <value>
        1038           %MEM_ARGS%
        1039          </value>
        1040                                                              
        1041          <value>
        1042           -Dweblogic .Name=%SER VER_NAME%
        1043          </value>
        1044                                                              
        1045          <value>
        1046           -Djava.sec urity.poli cy=%WLS_PO LICY_FILE%
        1047          </value>
        1048                                                              
        1049          <value>
        1050           %JAVA_OPTI ONS%
        1051          </value>
        1052                                                              
        1053          <value>
        1054           %PROXY_SET TINGS%
        1055          </value>
        1056                                                     
        1057         </params>
        1058                                                    
        1059         <redirect 
        1060          file="%WLS _REDIRECT_ LOG%" 
        1061          tostream=" 1" 
        1062          fromstream ="2"
        1063         />
        1064                                            
        1065        </exec>
        1066                                  
        1067       </else>
        1068                        
        1069      </if>
        1070                       
        1071      <marker 
        1072       name="sect ion_marker _16" 
        1073       type="bloc kinsert" 
        1074       action="ap pend"
        1075      />
        1076                       
        1077      <call 
        1078       name="stop All"
        1079      />
        1080                       
        1081      <popd/>
        1082                       
        1083      <comment>
        1084                                 
        1085       <value>
        1086        Exit this  script onl y if we ha ve been to ld to exit .
        1087       </value>
        1088                        
        1089      </comment>
        1090                       
        1091      <if>
        1092                                 
        1093       <test 
        1094        type="stri ng"
        1095       >
        1096                                           
        1097        <operand 
        1098         value="%do ExitFlag%"
        1099        />
        1100                                           
        1101        <operand 
        1102         value="tru e"
        1103        />
        1104                                  
        1105       </test>
        1106                                 
        1107       <then>
        1108                                           
        1109        <exit 
        1110         hard="true "
        1111        />
        1112                                  
        1113       </then>
        1114                        
        1115      </if>
        1116                       
        1117      <marker 
        1118       name="sect ion_marker _17" 
        1119       type="bloc kinsert" 
        1120       action="ap pend"
        1121      />
        1122              
        1123     </script>
        1124             
        1125     <script 
        1126      name="star tWebLogic"  
        1127      version="3
        1128      overwrite= "false" 
        1129      unixFileSe p="${CLASS PATHSEP}"
        1130     >
        1131                       
        1132      <marker 
        1133       name="sect ion_marker _1" 
        1134       type="bloc kinsert" 
        1135       action="ap pend"
        1136      />
        1137                       
        1138      <setenv 
        1139       name="DOMA IN_HOME"
        1140      >
        1141                                 
        1142       <value>
        1143        @USERDOMAI N_HOME
        1144       </value>
        1145                        
        1146      </setenv>
        1147                       
        1148      <marker 
        1149       name="sect ion_marker _2" 
        1150       type="bloc kinsert" 
        1151       action="ap pend"
        1152      />
        1153                       
        1154      <exec 
        1155       name="star tWebLogic"  
        1156       type="scri pt"
        1157      >
        1158                                 
        1159       <cmd 
        1160        start="%DO MAIN_HOME% \bin\start WebLogic" 
        1161        min="false "
        1162       />
        1163                                 
        1164       <params>
        1165                                           
        1166        <value>
        1167         %*
        1168        </value>
        1169                                  
        1170       </params>
        1171                        
        1172      </exec>
        1173                       
        1174      <marker 
        1175       name="sect ion_marker _3" 
        1176       type="bloc kinsert" 
        1177       action="ap pend"
        1178      />
        1179              
        1180     </script>
        1181             
        1182     <script 
        1183      name="stop WebLogic" 
        1184      version="3
        1185      path="bin"  
        1186      overwrite= "false"
        1187     >
        1188                       
        1189      <marker 
        1190       name="sect ion_marker _1" 
        1191       type="bloc kinsert" 
        1192       action="ap pend"
        1193      />
        1194                       
        1195      <if>
        1196                                 
        1197       <test 
        1198        type="stri ng" 
        1199        not="true"
        1200       >
        1201                                           
        1202        <operand 
        1203         value="%1"
        1204        />
        1205                                           
        1206        <operand 
        1207         value=""
        1208        />
        1209                                  
        1210       </test>
        1211                                 
        1212       <then>
        1213                                           
        1214        <setenv 
        1215         name="wlsU serID" 
        1216         scope="glo bal"
        1217        >
        1218                                                    
        1219         <value>
        1220          %1
        1221         </value>
        1222                                            
        1223        </setenv>
        1224                                           
        1225        <setenv 
        1226         name="user ID"
        1227        >
        1228                                                    
        1229         <value>
        1230          username=w lsUserID,
        1231         </value>
        1232                                            
        1233        </setenv>
        1234                                           
        1235        <shift/>
        1236                                  
        1237       </then>
        1238                                 
        1239       <else>
        1240                                           
        1241        <if>
        1242                                                    
        1243         <test 
        1244          type="stri ng" 
        1245          not="true"
        1246         >
        1247                                                              
        1248          <operand 
        1249           value="%us erID%"
        1250          />
        1251                                                              
        1252          <operand 
        1253           value=""
        1254          />
        1255                                                     
        1256         </test>
        1257                                                    
        1258         <then>
        1259                                                              
        1260          <setenv 
        1261           name="wlsU serID" 
        1262           scope="glo bal"
        1263          >
        1264                                                                        
        1265           <value>
        1266            %userID%
        1267           </value>
        1268                                                               
        1269          </setenv>
        1270                                                              
        1271          <setenv 
        1272           name="user ID"
        1273          >
        1274                                                                        
        1275           <value>
        1276            username=w lsUserID,
        1277           </value>
        1278                                                               
        1279          </setenv>
        1280                                                     
        1281         </then>
        1282                                            
        1283        </if>
        1284                                  
        1285       </else>
        1286                        
        1287      </if>
        1288                       
        1289      <marker 
        1290       name="sect ion_marker _2" 
        1291       type="bloc kinsert" 
        1292       action="ap pend"
        1293      />
        1294                       
        1295      <if>
        1296                                 
        1297       <test 
        1298        type="stri ng" 
        1299        not="true"
        1300       >
        1301                                           
        1302        <operand 
        1303         value="%1"
        1304        />
        1305                                           
        1306        <operand 
        1307         value=""
        1308        />
        1309                                  
        1310       </test>
        1311                                 
        1312       <then>
        1313                                           
        1314        <setenv 
        1315         name="wlsP assword" 
        1316         scope="glo bal"
        1317        >
        1318                                                    
        1319         <value>
        1320          %1
        1321         </value>
        1322                                            
        1323        </setenv>
        1324                                           
        1325        <setenv 
        1326         name="pass word"
        1327        >
        1328                                                    
        1329         <value>
        1330          password=w lsPassword ,
        1331         </value>
        1332                                            
        1333        </setenv>
        1334                                           
        1335        <shift/>
        1336                                  
        1337       </then>
        1338                                 
        1339       <else>
        1340                                           
        1341        <if>
        1342                                                    
        1343         <test 
        1344          type="stri ng" 
        1345          not="true"
        1346         >
        1347                                                              
        1348          <operand 
        1349           value="%pa ssword%"
        1350          />
        1351                                                              
        1352          <operand 
        1353           value=""
        1354          />
        1355                                                     
        1356         </test>
        1357                                                    
        1358         <then>
        1359                                                              
        1360          <setenv 
        1361           name="wlsP assword" 
        1362           scope="glo bal"
        1363          >
        1364                                                                        
        1365           <value>
        1366            %password%
        1367           </value>
        1368                                                               
        1369          </setenv>
        1370                                                              
        1371          <setenv 
        1372           name="pass word"
        1373          >
        1374                                                                        
        1375           <value>
        1376            password=w lsPassword ,
        1377           </value>
        1378                                                               
        1379          </setenv>
        1380                                                     
        1381         </then>
        1382                                            
        1383        </if>
        1384                                  
        1385       </else>
        1386                        
        1387      </if>
        1388                       
        1389      <marker 
        1390       name="sect ion_marker _3" 
        1391       type="bloc kinsert" 
        1392       action="ap pend"
        1393      />
        1394                       
        1395      <comment 
        1396       message="s et ADMIN_U RL"
        1397      />
        1398                       
        1399      <if>
        1400                                 
        1401       <test 
        1402        type="stri ng" 
        1403        not="true"
        1404       >
        1405                                           
        1406        <operand 
        1407         value="%1"
        1408        />
        1409                                           
        1410        <operand 
        1411         value=""
        1412        />
        1413                                  
        1414       </test>
        1415                                 
        1416       <then>
        1417                                           
        1418        <setenv 
        1419         name="ADMI N_URL"
        1420        >
        1421                                                    
        1422         <value>
        1423          %1
        1424         </value>
        1425                                            
        1426        </setenv>
        1427                                           
        1428        <shift/>
        1429                                  
        1430       </then>
        1431                                 
        1432       <else>
        1433                                           
        1434        <if>
        1435                                                    
        1436         <test 
        1437          type="stri ng"
        1438         >
        1439                                                              
        1440          <operand 
        1441           value="%AD MIN_URL%"
        1442          />
        1443                                                              
        1444          <operand 
        1445           value=""
        1446          />
        1447                                                     
        1448         </test>
        1449                                                    
        1450         <then>
        1451                                                              
        1452          <setenv 
        1453           name="ADMI N_URL"
        1454          >
        1455                                                                        
        1456           <value 
        1457            preserve=" true"
        1458           >
        1459            t3://@SERV ER_HOST:@S ERVER_PORT
        1460           </value>
        1461                                                               
        1462          </setenv>
        1463                                                     
        1464         </then>
        1465                                            
        1466        </if>
        1467                                  
        1468       </else>
        1469                        
        1470      </if>
        1471                       
        1472      <marker 
        1473       name="sect ion_marker _4" 
        1474       type="bloc kinsert" 
        1475       action="ap pend"
        1476      />
        1477                       
        1478      <comment 
        1479       message="C all setDom ainEnv her e because  we want to  have shif ted out th e environm ent vars a bove"
        1480      />
        1481                       
        1482      <setenv 
        1483       name="DOMA IN_HOME" 
        1484       shorten="t rue"
        1485      >
        1486                                 
        1487       <value>
        1488        @USERDOMAI N_HOME
        1489       </value>
        1490                        
        1491      </setenv>
        1492                       
        1493      <comment 
        1494       message="R ead the en vironment  variable f rom the co nsole."
        1495      />
        1496                       
        1497      <if>
        1498                                 
        1499       <test 
        1500        type="stri ng"
        1501       >
        1502                                           
        1503        <operand 
        1504         value="%do Exit%"
        1505        />
        1506                                           
        1507        <operand 
        1508         value="tru e"
        1509        />
        1510                                  
        1511       </test>
        1512                                 
        1513       <then>
        1514                                           
        1515        <setenv 
        1516         name="exit Flag"
        1517        >
        1518                                                    
        1519         <value>
        1520          doExit
        1521         </value>
        1522                                            
        1523        </setenv>
        1524                                  
        1525       </then>
        1526                                 
        1527       <else>
        1528                                           
        1529        <setenv 
        1530         name="exit Flag"
        1531        >
        1532                                                    
        1533         <value>
        1534          noExit
        1535         </value>
        1536                                            
        1537        </setenv>
        1538                                  
        1539       </else>
        1540                        
        1541      </if>
        1542                       
        1543      <exec 
        1544       name="setD omainEnv" 
        1545       type="scri pt"
        1546      >
        1547                                 
        1548       <cmd 
        1549        start="%DO MAIN_HOME% \bin\setDo mainEnv" 
        1550        min="false
        1551        source="tr ue"
        1552       />
        1553                                 
        1554       <params>
        1555                                           
        1556        <value>
        1557         %exitFlag%
        1558        </value>
        1559                                  
        1560       </params>
        1561                        
        1562      </exec>
        1563                       
        1564      <blockinse rt 
        1565       name="umas k_section"  
        1566       os="unix"
        1567      >
        1568                                 
        1569       <exec 
        1570        name="umas k" 
        1571        type="prog ram"
        1572       >
        1573                                           
        1574        <cmd 
        1575         start="uma sk 026" 
        1576         min="false "
        1577        />
        1578                                  
        1579       </exec>
        1580                        
        1581      </blockins ert>
        1582                       
        1583      <marker 
        1584       name="sect ion_marker _5" 
        1585       type="bloc kinsert" 
        1586       action="ap pend"
        1587      />
        1588                       
        1589      <echo>
        1590                                 
        1591       <value>
        1592        wlsUserID  = java.lan g.System.g etenv(&#03 9;wlsUserI D&#039;)
        1593       </value>
        1594                                 
        1595       <value>
        1596        wlsPasswor d = java.l ang.System .getenv(&# 039;wlsPas sword&#039 ;)
        1597       </value>
        1598                                 
        1599       <value>
        1600        connect(%u serID% %pa ssword% ur l=&#039;%A DMIN_URL%& #039;, adm inServerNa me=&#039;% SERVER_NAM E%&#039;)
        1601       </value>
        1602                                 
        1603       <value>
        1604        shutdown(& #039;%SERV ER_NAME%&# 039;,&#039 ;Server&#0 39;, ignor eSessions= &#039;true &#039;)
        1605       </value>
        1606                                 
        1607       <value>
        1608        exit()
        1609       </value>
        1610                                 
        1611       <redirect 
        1612        file="shut down-%SERV ER_NAME%.p y"
        1613       />
        1614                        
        1615      </echo>
        1616                       
        1617      <echo 
        1618       message="S topping We blogic Ser ver..."
        1619      />
        1620                       
        1621      <exec 
        1622       name="Stop  Weblogic  Server..."  
        1623       type="prog ram"
        1624      >
        1625                                 
        1626       <cmd 
        1627        start="%JA VA_HOME%\b in\java" 
        1628        end="weblo gic.WLST" 
        1629        min="false "
        1630       />
        1631                                 
        1632       <params>
        1633                                           
        1634        <value>
        1635         -classpath  %FMWCONFI G_CLASSPAT H%
        1636        </value>
        1637                                           
        1638        <value>
        1639         %MEM_ARGS%
        1640        </value>
        1641                                           
        1642        <value>
        1643         %JVM_D64%
        1644        </value>
        1645                                           
        1646        <value>
        1647         %JAVA_OPTI ONS%
        1648        </value>
        1649                                  
        1650       </params>
        1651                                 
        1652       <params 
        1653        type="post "
        1654       >
        1655                                           
        1656        <value>
        1657         shutdown-% SERVER_NAM E%.py
        1658        </value>
        1659                                  
        1660       </params>
        1661                                 
        1662       <redirect 
        1663        tostream=" 1" 
        1664        fromstream ="2"
        1665       />
        1666                        
        1667      </exec>
        1668                       
        1669      <echo 
        1670       message="D one"
        1671      />
        1672                       
        1673      <echo 
        1674       message="S topping De rby Server ..."
        1675      />
        1676                       
        1677      <if>
        1678                                 
        1679       <test 
        1680        type="stri ng"
        1681       >
        1682                                           
        1683        <operand 
        1684         value="%DE RBY_FLAG%"
        1685        />
        1686                                           
        1687        <operand 
        1688         value="tru e"
        1689        />
        1690                                  
        1691       </test>
        1692                                 
        1693       <then>
        1694                                           
        1695        <exec 
        1696         name="stop Derby" 
        1697         type="scri pt"
        1698        >
        1699                                                    
        1700         <cmd 
        1701          start="%WL _HOME%\com mon\derby\ bin\stopNe tworkServe r" 
        1702          min="false
        1703          source="tr ue"
        1704         />
        1705                                                    
        1706         <redirect 
        1707          file="%DOM AIN_HOME%\ derbyShutd own.log" 
        1708          tostream=" 1" 
        1709          fromstream ="2"
        1710         />
        1711                                            
        1712        </exec>
        1713                                           
        1714        <echo 
        1715         message="D erby serve r stopped. "
        1716        />
        1717                                  
        1718       </then>
        1719                        
        1720      </if>
        1721                       
        1722      <comment>
        1723                                 
        1724       <value>
        1725        Exit this  script onl y if we ha ve been to ld to exit .
        1726       </value>
        1727                        
        1728      </comment>
        1729                       
        1730      <if>
        1731                                 
        1732       <test 
        1733        type="stri ng"
        1734       >
        1735                                           
        1736        <operand 
        1737         value="%do ExitFlag%"
        1738        />
        1739                                           
        1740        <operand 
        1741         value="tru e"
        1742        />
        1743                                  
        1744       </test>
        1745                                 
        1746       <then>
        1747                                           
        1748        <exit 
        1749         hard="true "
        1750        />
        1751                                  
        1752       </then>
        1753                        
        1754      </if>
        1755                       
        1756      <marker 
        1757       name="sect ion_marker _6" 
        1758       type="bloc kinsert" 
        1759       action="ap pend"
        1760      />
        1761              
        1762     </script>
        1763             
        1764     <script 
        1765      name="star tManagedWe bLogic" 
        1766      version="3
        1767      path="bin"  
        1768      overwrite= "false"
        1769     >
        1770                       
        1771      <function 
        1772       name="usag e"
        1773      >
        1774                                 
        1775       <echo 
        1776        message="N eed to set  SERVER_NA ME and ADM IN_URL env ironment v ariables o r specify"
        1777       />
        1778                                 
        1779       <echo 
        1780        message="t hem in com mand line: "
        1781       />
        1782                                 
        1783       <echo 
        1784        message="U sage: %1 S ERVER_NAME  {ADMIN_UR L}"
        1785       />
        1786                                 
        1787       <echo 
        1788        message="f or example :"
        1789       />
        1790                                 
        1791       <echo>
        1792                                           
        1793        <value>
        1794         %1 managed server1 
        1795        </value>
        1796                                           
        1797        <value 
        1798         preserve=" true" 
        1799         mergeprev= "true"
        1800        >
        1801         @ADMIN_SER VER_URL
        1802        </value>
        1803                                  
        1804       </echo>
        1805                        
        1806      </function >
        1807                       
        1808      <comment>
        1809                                 
        1810       <value>
        1811        ********** ********** ********** ********** ********** ********** ********** ***
        1812       </value>
        1813                                 
        1814       <value>
        1815        This scrip t is used  to start a  managed W ebLogic Se rver for t he domain  in
        1816       </value>
        1817                                 
        1818       <value>
        1819        the curren t working  directory.   This scr ipt can ei ther read  in the SER VER_NAME a nd
        1820       </value>
        1821                                 
        1822       <value>
        1823        ADMIN_URL  as positio nal parame ters or wi ll read th em from en vironment  variables  that are 
        1824       </value>
        1825                                 
        1826       <value>
        1827        set before  calling t his script . If SERVE R_NAME is  not sent a s a parame ter or exi sts with a  value
        1828       </value>
        1829                                 
        1830       <value>
        1831        as an envi ronment va riable the  script wi ll EXIT. I f the ADMI N_URL valu e cannot b e determin ed
        1832       </value>
        1833                                 
        1834       <value>
        1835        by reading  a paramet er or from  the envir onment a d efault val ue will be  used.
        1836       </value>
        1837                                 
        1838       <value>
        1839       </value>
        1840                                 
        1841       <value>
        1842         For addit ional info rmation, r efer to &q uot;Admini stering Se rver Start up and Shu tdown for  Oracle Web Logic Serv er&quot;
        1843       </value>
        1844                                 
        1845       <value>
        1846        ********** ********** ********** ********** ********** ********** ********** ***
        1847       </value>
        1848                        
        1849      </comment>
        1850                       
        1851      <marker 
        1852       name="sect ion_marker _1" 
        1853       type="bloc kinsert" 
        1854       action="ap pend"
        1855      />
        1856                       
        1857      <comment 
        1858       message="  Set SERVER _NAME to t he name of  the serve r you wish  to start  up."
        1859      />
        1860                       
        1861      <setenv 
        1862       name="DOMA IN_NAME"
        1863      >
        1864                                 
        1865       <value>
        1866        @DOMAIN_NA ME
        1867       </value>
        1868                        
        1869      </setenv>
        1870                       
        1871      <setenv 
        1872       name="ADMI N_URL"
        1873      >
        1874                                 
        1875       <value 
        1876        preserve=" true"
        1877       >
        1878        @ADMIN_SER VER_URL
        1879       </value>
        1880                        
        1881      </setenv>
        1882                       
        1883      <marker 
        1884       name="sect ion_marker _2" 
        1885       type="bloc kinsert" 
        1886       action="ap pend"
        1887      />
        1888                       
        1889      <comment 
        1890       message="  Set WLS_US ER equal t o your sys tem userna me and WLS _PW equal   "
        1891      />
        1892                       
        1893      <comment 
        1894       message="  to your sy stem passw ord for no  username  and passwo rd prompt  "
        1895      />
        1896                       
        1897      <comment 
        1898       message="  during ser ver startu p.  Both a re require d to bypas s the star tup"
        1899      />
        1900                       
        1901      <comment 
        1902       message="  prompt."
        1903      />
        1904                       
        1905      <setenv 
        1906       name="WLS_ USER" 
        1907       scope="glo bal"
        1908      >
        1909                                 
        1910       <value>
        1911       </value>
        1912                        
        1913      </setenv>
        1914                       
        1915      <setenv 
        1916       name="WLS_ PW" 
        1917       scope="glo bal"
        1918      >
        1919                                 
        1920       <value>
        1921       </value>
        1922                        
        1923      </setenv>
        1924                       
        1925      <marker 
        1926       name="sect ion_marker _3" 
        1927       type="bloc kinsert" 
        1928       action="ap pend"
        1929      />
        1930                       
        1931      <comment 
        1932       message="  Set JAVA_O PTIONS to  the java f lags you w ant to pas s to the v m. i.e.: "
        1933      />
        1934                       
        1935      <comment 
        1936       message="  set JAVA_O PTIONS=-Dw eblogic.at tribute=va lue -Djava .attribute =value"
        1937      />
        1938                       
        1939      <setenv 
        1940       name="JAVA _OPTIONS" 
        1941       scope="glo bal" 
        1942       delim=" "
        1943      >
        1944                                 
        1945       <value>
        1946        -Dweblogic .security. SSL.truste dCAKeyStor e=&quot;@W L_HOME\ser ver\lib\ca certs&quot ;
        1947       </value>
        1948                                 
        1949       <value>
        1950        %JAVA_OPTI ONS%
        1951       </value>
        1952                        
        1953      </setenv>
        1954                       
        1955      <comment 
        1956       message="  Set JAVA_V M to the j ava virtua l machine  you want t o run.  Fo r instance :"
        1957      />
        1958                       
        1959      <comment 
        1960       message="  set JAVA_V M=-server"
        1961      />
        1962                       
        1963      <setenv 
        1964       name="JAVA _VM"
        1965      >
        1966                                 
        1967       <value>
        1968       </value>
        1969                        
        1970      </setenv>
        1971                       
        1972      <comment 
        1973       message="  Set SERVER _NAME and  ADMIN_URL,  they must  be specif ied before  starting"
        1974      />
        1975                       
        1976      <comment 
        1977       message="  a managed  server, de tailed inf ormation c an be foun d in"
        1978      />
        1979                       
        1980      <comment 
        1981       message="  Administer ing Server  Startup a nd Shutdow n for Orac le WebLogi c Server"
        1982      />
        1983                       
        1984      <marker 
        1985       name="sect ion_marker _4" 
        1986       type="bloc kinsert" 
        1987       action="ap pend"
        1988      />
        1989                       
        1990      <if>
        1991                                 
        1992       <test 
        1993        type="stri ng"
        1994       >
        1995                                           
        1996        <operand 
        1997         value="%1"
        1998        />
        1999                                           
        2000        <operand 
        2001         value=""
        2002        />
        2003                                  
        2004       </test>
        2005                                 
        2006       <then>
        2007                                           
        2008        <if>
        2009                                                    
        2010         <test 
        2011          type="stri ng"
        2012         >
        2013                                                              
        2014          <operand 
        2015           value="%SE RVER_NAME% "
        2016          />
        2017                                                              
        2018          <operand 
        2019           value=""
        2020          />
        2021                                                     
        2022         </test>
        2023                                                    
        2024         <then>
        2025                                                              
        2026          <call 
        2027           name="usag e" 
        2028           args="%0"
        2029          />
        2030                                                              
        2031          <exit/>
        2032                                                     
        2033         </then>
        2034                                            
        2035        </if>
        2036                                  
        2037       </then>
        2038                                 
        2039       <else>
        2040                                           
        2041        <setenv 
        2042         name="SERV ER_NAME"
        2043        >
        2044                                                    
        2045         <value>
        2046          %1
        2047         </value>
        2048                                            
        2049        </setenv>
        2050                                           
        2051        <shift/>
        2052                                  
        2053       </else>
        2054                        
        2055      </if>
        2056                       
        2057      <marker 
        2058       name="sect ion_marker _5" 
        2059       type="bloc kinsert" 
        2060       action="ap pend"
        2061      />
        2062                       
        2063      <if>
        2064                                 
        2065       <test 
        2066        type="stri ng"
        2067       >
        2068                                           
        2069        <operand 
        2070         value="%1"
        2071        />
        2072                                           
        2073        <operand 
        2074         value=""
        2075        />
        2076                                  
        2077       </test>
        2078                                 
        2079       <then>
        2080                                           
        2081        <if>
        2082                                                    
        2083         <test 
        2084          type="stri ng"
        2085         >
        2086                                                              
        2087          <operand 
        2088           value="%AD MIN_URL%"
        2089          />
        2090                                                              
        2091          <operand 
        2092           value=""
        2093          />
        2094                                                     
        2095         </test>
        2096                                                    
        2097         <then>
        2098                                                              
        2099          <call 
        2100           name="usag e" 
        2101           args="%0"
        2102          />
        2103                                                              
        2104          <exit/>
        2105                                                     
        2106         </then>
        2107                                            
        2108        </if>
        2109                                  
        2110       </then>
        2111                                 
        2112       <else>
        2113                                           
        2114        <setenv 
        2115         name="ADMI N_URL"
        2116        >
        2117                                                    
        2118         <value>
        2119          %1
        2120         </value>
        2121                                            
        2122        </setenv>
        2123                                           
        2124        <shift/>
        2125                                  
        2126       </else>
        2127                        
        2128      </if>
        2129                       
        2130      <marker 
        2131       name="sect ion_marker _6" 
        2132       type="bloc kinsert" 
        2133       action="ap pend"
        2134      />
        2135                       
        2136      <comment 
        2137       message="E xport the  admin_url  whether th e user spe cified it  OR it was  sent on th e command- line"
        2138      />
        2139                       
        2140      <setenv 
        2141       name="ADMI N_URL" 
        2142       scope="glo bal"
        2143      >
        2144                                 
        2145       <value>
        2146        %ADMIN_URL %
        2147       </value>
        2148                        
        2149      </setenv>
        2150                       
        2151      <setenv 
        2152       name="SERV ER_NAME" 
        2153       scope="glo bal"
        2154      >
        2155                                 
        2156       <value>
        2157        %SERVER_NA ME%
        2158       </value>
        2159                        
        2160      </setenv>
        2161                       
        2162      <setenv 
        2163       name="DOMA IN_HOME"
        2164      >
        2165                                 
        2166       <value>
        2167        @USERDOMAI N_HOME
        2168       </value>
        2169                        
        2170      </setenv>
        2171                       
        2172      <marker 
        2173       name="sect ion_marker _7" 
        2174       type="bloc kinsert" 
        2175       action="ap pend"
        2176      />
        2177                       
        2178      <if>
        2179                                 
        2180       <test 
        2181        type="stri ng"
        2182       >
        2183                                           
        2184        <operand 
        2185         value="%1"
        2186        />
        2187                                           
        2188        <operand 
        2189         value=""
        2190        />
        2191                                  
        2192       </test>
        2193                                 
        2194       <then>
        2195                                           
        2196        <comment 
        2197         message="  Call Weblo gic Server  with our  default pa rams since  the user  did not sp ecify any  other ones "
        2198        />
        2199                                           
        2200        <exec 
        2201         name="star tWebLogic"  
        2202         type="scri pt"
        2203        >
        2204                                                    
        2205         <cmd 
        2206          start="%DO MAIN_HOME% \bin\start WebLogic" 
        2207          min="false "
        2208         />
        2209                                                    
        2210         <params>
        2211                                                              
        2212          <value>
        2213           nodebug
        2214          </value>
        2215                                                              
        2216          <value>
        2217           noderby
        2218          </value>
        2219                                                     
        2220         </params>
        2221                                            
        2222        </exec>
        2223                                  
        2224       </then>
        2225                                 
        2226       <else>
        2227                                           
        2228        <comment 
        2229         message="  Call Weblo gic Server  with the  params the  user sent  in INSTEA D of the d efaults"
        2230        />
        2231                                           
        2232        <blockinse rt 
        2233         name="call _startwebl ogic_win" 
        2234         os="win"
        2235        >
        2236                                                    
        2237         <for 
        2238          variable=" p" 
        2239          list="%*"
        2240         >
        2241                                                              
        2242          <do>
        2243                                                                        
        2244           <if>
        2245                                                                                  
        2246            <test 
        2247             type="stri ng"
        2248            >
        2249                                                                                            
        2250             <operand 
        2251              value="%SE RVER_NAME_ SKIPPED%"
        2252             />
        2253                                                                                            
        2254             <operand 
        2255              value=""
        2256             />
        2257                                                                                   
        2258            </test>
        2259                                                                                  
        2260            <then>
        2261                                                                                            
        2262             <setenv 
        2263              name="SERV ER_NAME_SK IPPED"
        2264             >
        2265                                                                                                     
        2266              <value>
        2267               true
        2268              </value>
        2269                                                                                             
        2270             </setenv>
        2271                                                                                   
        2272            </then>
        2273                                                                                  
        2274            <else>
        2275                                                                                            
        2276             <if>
        2277                                                                                                     
        2278              <test 
        2279               type="stri ng"
        2280              >
        2281                                                                                                               
        2282               <operand 
        2283                value="%UR L_SKIPPED% "
        2284               />
        2285                                                                                                               
        2286               <operand 
        2287                value=""
        2288               />
        2289                                                                                                      
        2290              </test>
        2291                                                                                                     
        2292              <then>
        2293                                                                                                               
        2294               <setenv 
        2295                name="URL_ SKIPPED"
        2296               >
        2297                                                                                                                         
        2298                <value>
        2299                 true
        2300                </value>
        2301                                                                                                                
        2302               </setenv>
        2303                                                                                                      
        2304              </then>
        2305                                                                                                     
        2306              <else>
        2307                                                                                                               
        2308               <setenv 
        2309                name="CMD_ LINE_ARGS"
        2310               >
        2311                                                                                                                         
        2312                <value>
        2313                 %CMD_LINE_ ARGS% %p%
        2314                </value>
        2315                                                                                                                
        2316               </setenv>
        2317                                                                                                      
        2318              </else>
        2319                                                                                             
        2320             </if>
        2321                                                                                   
        2322            </else>
        2323                                                                         
        2324           </if>
        2325                                                               
        2326          </do>
        2327                                                     
        2328         </for>
        2329                                                    
        2330         <exec 
        2331          name="star tWebLogic"  
        2332          type="scri pt"
        2333         >
        2334                                                              
        2335          <cmd 
        2336           start="%DO MAIN_HOME% \bin\start WebLogic" 
        2337           min="false "
        2338          />
        2339                                                              
        2340          <params>
        2341                                                                        
        2342           <value>
        2343            %CMD_LINE_ ARGS%
        2344           </value>
        2345                                                               
        2346          </params>
        2347                                                     
        2348         </exec>
        2349                                            
        2350        </blockins ert>
        2351                                           
        2352        <blockinse rt 
        2353         name="defi ne_shift_u rl" 
        2354         os="unix"
        2355        >
        2356                                                    
        2357         <exec 
        2358          name="star tWebLogic"  
        2359          type="scri pt"
        2360         >
        2361                                                              
        2362          <cmd 
        2363           start="%DO MAIN_HOME% \bin\start WebLogic" 
        2364           min="false "
        2365          />
        2366                                                              
        2367          <params>
        2368                                                                        
        2369           <value>
        2370            %*
        2371           </value>
        2372                                                               
        2373          </params>
        2374                                                     
        2375         </exec>
        2376                                            
        2377        </blockins ert>
        2378                                  
        2379       </else>
        2380                        
        2381      </if>
        2382                       
        2383      <marker 
        2384       name="sect ion_marker _8" 
        2385       type="bloc kinsert" 
        2386       action="ap pend"
        2387      />
        2388              
        2389     </script>
        2390             
        2391     <script 
        2392      name="stop ManagedWeb Logic" 
        2393      version="3
        2394      path="bin"  
        2395      overwrite= "false"
        2396     >
        2397                       
        2398      <function 
        2399       name="usag e"
        2400      >
        2401                                 
        2402       <echo 
        2403        message="Y ou must ha ve a value  for SERVE R_NAME eit her set as  an enviro nment vari able or th e first pa rameter on  the comma nd-line."
        2404       />
        2405                                 
        2406       <echo 
        2407        message="A DMIN_URL d efaults to  t3://@SER VER_HOST:@ SERVER_POR T if not s et as an e nvironment  variable  or the sec ond comman d-line par ameter."
        2408       />
        2409                                 
        2410       <echo 
        2411        message="U SER_NAME a nd PASSWOR D are requ ired for s hutting th e server d own when r unning in  production  mode:"
        2412       />
        2413                                 
        2414       <echo 
        2415        message="U sage: %1 { SERVER_NAM E} {ADMIN_ URL} {USER _NAME} {PA SSWORD}"
        2416       />
        2417                                 
        2418       <echo 
        2419        message="f or example :"
        2420       />
        2421                                 
        2422       <echo>
        2423                                           
        2424        <value>
        2425         %1 managed server1 
        2426        </value>
        2427                                           
        2428        <value 
        2429         preserve=" true" 
        2430         mergeprev= "true"
        2431        >
        2432         t3://@SERV ER_HOST:@S ERVER_PORT  weblogic  weblogic
        2433        </value>
        2434                                  
        2435       </echo>
        2436                        
        2437      </function >
        2438                       
        2439      <comment>
        2440                                 
        2441       <value>
        2442        ********** ********** ********** ********** ********** ********** ********** ***
        2443       </value>
        2444                                 
        2445       <value>
        2446        This scrip t is used  to stop a  managed We bLogic Ser ver for th e domain i n
        2447       </value>
        2448                                 
        2449       <value>
        2450        the curren t working  directory.   This scr ipt reads  in the SER VER_NAME a nd
        2451       </value>
        2452                                 
        2453       <value>
        2454        ADMIN_URL  as positio nal parame ters or wi ll read th em from en vironment  variables  that are 
        2455       </value>
        2456                                 
        2457       <value>
        2458        set before  calling t his script . If SERVE R_NAME is  not sent a s a parame ter or exi sts with a  value
        2459       </value>
        2460                                 
        2461       <value>
        2462        as an envi ronment va riable the  script wi ll EXIT. I f the ADMI N_URL valu e cannot b e determin ed
        2463       </value>
        2464                                 
        2465       <value>
        2466        by reading  a paramet er or from  the envir onment a d efault val ue will be  used.
        2467       </value>
        2468                                 
        2469       <value>
        2470       </value>
        2471                                 
        2472       <value>
        2473        Then this  script cal ls the sto pWebLogic  script und er ${WL_HO ME}/server /bin.
        2474       </value>
        2475                                 
        2476       <value>
        2477       </value>
        2478                                 
        2479       <value>
        2480        Other vari ables that  stopWebLo gic takes  are:
        2481       </value>
        2482                                 
        2483       <value>
        2484       </value>
        2485                                 
        2486       <value>
        2487        WLS_USER        - cle artext use r for serv er shutdow n
        2488       </value>
        2489                                 
        2490       <value>
        2491        WLS_PW          - cle artext pas sword for  server shu tdown
        2492       </value>
        2493                                 
        2494       <value>
        2495        JAVA_OPTIO NS   - Jav a command- line optio ns for run ning the s erver. (Th ese
        2496       </value>
        2497                                 
        2498       <value>
        2499                          wil l be tagge d on to th e end of t he JAVA_VM )
        2500       </value>
        2501                                 
        2502       <value>
        2503        JAVA_VM         - The  java arg  specifying  the VM to  run.  (i. e. -server
        2504       </value>
        2505                                 
        2506       <value>
        2507                          -ho tspot, etc .)
        2508       </value>
        2509                                 
        2510       <value>
        2511       </value>
        2512                                 
        2513       <value>
        2514        For additi onal infor mation, re fer to &qu ot;Adminis tering Ser ver Startu p and Shut down for O racle WebL ogic Serve r&quot;
        2515       </value>
        2516                                 
        2517       <value>
        2518       </value>
        2519                                 
        2520       <value>
        2521        ********** ********** ********** ********** ********** ********** ********** ***
        2522       </value>
        2523                        
        2524      </comment>
        2525                       
        2526      <marker 
        2527       name="sect ion_marker _1" 
        2528       type="bloc kinsert" 
        2529       action="ap pend"
        2530      />
        2531                       
        2532      <comment 
        2533       message="  Set SERVER _NAME and  ADMIN_URL,  they must  be specif ied before  stopping"
        2534      />
        2535                       
        2536      <comment 
        2537       message="  a managed  server, de tailed inf ormation c an be foun d in"
        2538      />
        2539                       
        2540      <comment 
        2541       message="  Administer ing Server  Startup a nd Shutdow n for Orac le WebLogi c Server"
        2542      />
        2543                       
        2544      <marker 
        2545       name="sect ion_marker _2" 
        2546       type="bloc kinsert" 
        2547       action="ap pend"
        2548      />
        2549                       
        2550      <if>
        2551                                 
        2552       <test 
        2553        type="stri ng"
        2554       >
        2555                                           
        2556        <operand 
        2557         value="%1"
        2558        />
        2559                                           
        2560        <operand 
        2561         value=""
        2562        />
        2563                                  
        2564       </test>
        2565                                 
        2566       <then>
        2567                                           
        2568        <if>
        2569                                                    
        2570         <test 
        2571          type="stri ng"
        2572         >
        2573                                                              
        2574          <operand 
        2575           value="%SE RVER_NAME% "
        2576          />
        2577                                                              
        2578          <operand 
        2579           value=""
        2580          />
        2581                                                     
        2582         </test>
        2583                                                    
        2584         <then>
        2585                                                              
        2586          <call 
        2587           name="usag e" 
        2588           args="%0"
        2589          />
        2590                                                              
        2591          <exit/>
        2592                                                     
        2593         </then>
        2594                                            
        2595        </if>
        2596                                  
        2597       </then>
        2598                                 
        2599       <else>
        2600                                           
        2601        <setenv 
        2602         name="SERV ER_NAME" 
        2603         scope="glo bal"
        2604        >
        2605                                                    
        2606         <value>
        2607          %1
        2608         </value>
        2609                                            
        2610        </setenv>
        2611                                           
        2612        <shift/>
        2613                                  
        2614       </else>
        2615                        
        2616      </if>
        2617                       
        2618      <marker 
        2619       name="sect ion_marker _3" 
        2620       type="bloc kinsert" 
        2621       action="ap pend"
        2622      />
        2623                       
        2624      <if>
        2625                                 
        2626       <test 
        2627        type="stri ng"
        2628       >
        2629                                           
        2630        <operand 
        2631         value="%1"
        2632        />
        2633                                           
        2634        <operand 
        2635         value=""
        2636        />
        2637                                  
        2638       </test>
        2639                                 
        2640       <then>
        2641                                           
        2642        <if>
        2643                                                    
        2644         <test 
        2645          type="stri ng"
        2646         >
        2647                                                              
        2648          <operand 
        2649           value="%AD MIN_URL%"
        2650          />
        2651                                                              
        2652          <operand 
        2653           value=""
        2654          />
        2655                                                     
        2656         </test>
        2657                                                    
        2658         <then>
        2659                                                              
        2660          <setenv 
        2661           name="ADMI N_URL" 
        2662           scope="glo bal"
        2663          >
        2664                                                                        
        2665           <value 
        2666            preserve=" true"
        2667           >
        2668            t3://@SERV ER_HOST:@S ERVER_PORT
        2669           </value>
        2670                                                               
        2671          </setenv>
        2672                                                     
        2673         </then>
        2674                                            
        2675        </if>
        2676                                  
        2677       </then>
        2678                                 
        2679       <else>
        2680                                           
        2681        <setenv 
        2682         name="ADMI N_URL" 
        2683         scope="glo bal"
        2684        >
        2685                                                    
        2686         <value>
        2687          %1
        2688         </value>
        2689                                            
        2690        </setenv>
        2691                                           
        2692        <shift/>
        2693                                  
        2694       </else>
        2695                        
        2696      </if>
        2697                       
        2698      <marker 
        2699       name="sect ion_marker _4" 
        2700       type="bloc kinsert" 
        2701       action="ap pend"
        2702      />
        2703                       
        2704      <setenv 
        2705       name="DOMA IN_HOME"
        2706      >
        2707                                 
        2708       <value>
        2709        @USERDOMAI N_HOME
        2710       </value>
        2711                        
        2712      </setenv>
        2713                       
        2714      <marker 
        2715       name="sect ion_marker _5" 
        2716       type="bloc kinsert" 
        2717       action="ap pend"
        2718      />
        2719                       
        2720      <exec 
        2721       name="stop WebLogic" 
        2722       type="scri pt"
        2723      >
        2724                                 
        2725       <cmd 
        2726        start="%DO MAIN_HOME% \bin\stopW ebLogic" 
        2727        min="false "
        2728       />
        2729                                 
        2730       <params>
        2731                                           
        2732        <value>
        2733         %1
        2734        </value>
        2735                                           
        2736        <value>
        2737         %2
        2738        </value>
        2739                                  
        2740       </params>
        2741                        
        2742      </exec>
        2743                       
        2744      <marker 
        2745       name="sect ion_marker _6" 
        2746       type="bloc kinsert" 
        2747       action="ap pend"
        2748      />
        2749              
        2750     </script>
        2751             
        2752     <script 
        2753      name="setD omainEnv" 
        2754      version="3
        2755      path="bin"  
        2756      scope="glo bal" 
        2757      overwrite= "false" 
        2758      unixFileSe p="${CLASS PATHSEP}"
        2759     >
        2760                       
        2761      <comment>
        2762                                 
        2763       <value>
        2764        ********** ********** ********** ********** ********** ********** ********** ***
        2765       </value>
        2766                                 
        2767       <value>
        2768        This scrip t is used  to setup t he needed  environmen t to be ab le to star t Weblogic  Server in  this doma in.
        2769       </value>
        2770                                 
        2771       <value>
        2772       </value>
        2773                                 
        2774       <value>
        2775        This scrip t initiali zes the fo llowing va riables be fore calli ng commEnv  to set ot her variab les:
        2776       </value>
        2777                                 
        2778       <value>
        2779       </value>
        2780                                 
        2781       <value>
        2782        WL_HOME          - Th e BEA home  directory  of your W ebLogic in stallation .
        2783       </value>
        2784                                 
        2785       <value>
        2786        JAVA_VM          - Th e desired  Java VM to  use. You  can set th is environ ment varia ble before  calling
        2787       </value>
        2788                                 
        2789       <value>
        2790                           th is script  to switch  between Su n or BEA o r just hav e the defa ult be set
        2791       </value>
        2792                                 
        2793       <value>
        2794        JAVA_HOME        - Lo cation of  the versio n of Java  used to st art WebLog ic
        2795       </value>
        2796                                 
        2797       <value>
        2798                           Se rver. Depe nds direct ly on whic h JAVA_VM  value is s et by defa ult or by  the enviro nment.
        2799       </value>
        2800                                 
        2801       <value>
        2802        USER_MEM_A RGS   - Th e variable  to overri de the sta ndard memo ry argumen ts
        2803       </value>
        2804                                 
        2805       <value>
        2806                           pa ssed to ja va.
        2807       </value>
        2808                                 
        2809       <value>
        2810        PRODUCTION _MODE - Th e variable  that dete rmines whe ther Weblo gic Server  is starte d in produ ction mode .
        2811       </value>
        2812                                 
        2813       <value>
        2814        DOMAIN_PRO DUCTION_MO DE 
        2815       </value>
        2816                                 
        2817       <value>
        2818                         - Th e variable  that dete rmines whe ther the w orkshop re lated sett ings like  the debugg er,
        2819       </value>
        2820                                 
        2821       <value>
        2822                           te stconsole  or iterati vedev shou ld be enab led. ONLY  settable u sing the 
        2823       </value>
        2824                                 
        2825       <value>
        2826                           co mmand-line  parameter  named pro duction
        2827       </value>
        2828                                 
        2829       <value>
        2830                           NO TE: Specif ying the p roduction  command-li ne param w ill force 
        2831       </value>
        2832                                 
        2833       <value>
        2834                                   the s erver to s tart in pr oduction m ode.
        2835       </value>
        2836                                 
        2837       <value>
        2838        WLS_POLICY _FILE - Ja va policy  file to us e. Set thi s environm ent variab le to spec ify a poli cy file.
        2839       </value>
        2840                                 
        2841       <value>
        2842                           Ot herwise th is script  will assig n a defaul t value.
        2843       </value>
        2844                                 
        2845       <value>
        2846       </value>
        2847                                 
        2848       <value>
        2849        Other vari ables used  in this s cript incl ude:
        2850       </value>
        2851                                 
        2852       <value>
        2853        SERVER_NAM E     - Na me of the  weblogic s erver.
        2854       </value>
        2855                                 
        2856       <value>
        2857        JAVA_OPTIO NS    - Ja va command -line opti ons for ru nning the  server. (T hese
        2858       </value>
        2859                                 
        2860       <value>
        2861                           wi ll be tagg ed on to t he end of  the JAVA_V M and
        2862       </value>
        2863                                 
        2864       <value>
        2865                           ME M_ARGS)
        2866       </value>
        2867                                 
        2868       <value>
        2869        PROXY_SETT INGS  - Th ese are ta gged on to  the end o f the JAVA _OPTIONS.  This varia ble is dep recated an d should n ot
        2870       </value>
        2871                                 
        2872       <value>
        2873                           be  used. Ins tead use J AVA_OPTION S
        2874       </value>
        2875                                 
        2876       <value>
        2877       </value>
        2878                                 
        2879       <value>
        2880        For additi onal infor mation, re fer to &qu ot;Adminis tering Ser ver Startu p and Shut down for O racle WebL ogic Serve r&quot;
        2881       </value>
        2882                                 
        2883       <value>
        2884        ********** ********** ********** ********** ********** ********** ********** ***
        2885       </value>
        2886                        
        2887      </comment>
        2888                       
        2889      <marker 
        2890       name="sect ion_marker _1" 
        2891       type="bloc kinsert" 
        2892       action="ap pend"
        2893      />
        2894                       
        2895      <setenv 
        2896       name="WL_H OME" 
        2897       shorten="t rue" 
        2898       scope="glo bal"
        2899      >
        2900                                 
        2901       <value>
        2902        @WL_HOME
        2903       </value>
        2904                        
        2905      </setenv>
        2906                       
        2907      <marker 
        2908       name="prod uctDirBloc k" 
        2909       type="bloc kinsert" 
        2910       action="ap pend"
        2911      />
        2912                       
        2913      <setenv 
        2914       name="BEA_ JAVA_HOME"
        2915      >
        2916                                 
        2917       <value>
        2918        @BEA_JAVA_ HOME
        2919       </value>
        2920                        
        2921      </setenv>
        2922                       
        2923      <setenv 
        2924       name="DEFA ULT_BEA_JA VA_HOME"
        2925      >
        2926                                 
        2927       <value>
        2928        @BEA_JAVA_ HOME
        2929       </value>
        2930                        
        2931      </setenv>
        2932                       
        2933      <setenv 
        2934       name="SUN_ JAVA_HOME"
        2935      >
        2936                                 
        2937       <value>
        2938        @SUN_JAVA_ HOME
        2939       </value>
        2940                        
        2941      </setenv>
        2942                       
        2943      <setenv 
        2944       name="DEFA ULT_SUN_JA VA_HOME"
        2945      >
        2946                                 
        2947       <value>
        2948        @SUN_JAVA_ HOME
        2949       </value>
        2950                        
        2951      </setenv>
        2952                       
        2953      <marker 
        2954       name="sect ion_marker _2" 
        2955       type="bloc kinsert" 
        2956       action="ap pend"
        2957      />
        2958                       
        2959      <if>
        2960                                 
        2961       <test 
        2962        type="stri ng"
        2963       >
        2964                                           
        2965        <operand 
        2966         value="%SU N_JAVA_HOM E%"
        2967        />
        2968                                           
        2969        <operand 
        2970         value=""
        2971        />
        2972                                  
        2973       </test>
        2974                                 
        2975       <then>
        2976                                           
        2977        <setenv 
        2978         name="SUN_ JAVA_HOME"  
        2979         scope="glo bal"
        2980        >
        2981                                                    
        2982         <value>
        2983          @DEFAULT_S UN_JAVA_HO ME
        2984         </value>
        2985                                            
        2986        </setenv>
        2987                                  
        2988       </then>
        2989                        
        2990      </if>
        2991                       
        2992      <if>
        2993                                 
        2994       <test 
        2995        type="stri ng"
        2996       >
        2997                                           
        2998        <operand 
        2999         value="%BE A_JAVA_HOM E%"
        3000        />
        3001                                           
        3002        <operand 
        3003         value=""
        3004        />
        3005                                  
        3006       </test>
        3007                                 
        3008       <then>
        3009                                           
        3010        <setenv 
        3011         name="BEA_ JAVA_HOME"  
        3012         scope="glo bal"
        3013        >
        3014                                                    
        3015         <value>
        3016          @DEFAULT_B EA_JAVA_HO ME
        3017         </value>
        3018                                            
        3019        </setenv>
        3020                                  
        3021       </then>
        3022                        
        3023      </if>
        3024                       
        3025      <if>
        3026                                 
        3027       <test 
        3028        type="stri ng"
        3029       >
        3030                                           
        3031        <operand 
        3032         value="%VM _TYPE%"
        3033        />
        3034                                           
        3035        <operand 
        3036         value="JRo ckit"
        3037        />
        3038                                  
        3039       </test>
        3040                                 
        3041       <then>
        3042                                           
        3043        <setenv 
        3044         name="JAVA _HOME"
        3045        >
        3046                                                    
        3047         <value>
        3048          %BEA_JAVA_ HOME%
        3049         </value>
        3050                                            
        3051        </setenv>
        3052                                  
        3053       </then>
        3054                                 
        3055       <else>
        3056                                           
        3057        <if>
        3058                                                    
        3059         <test 
        3060          type="stri ng"
        3061         >
        3062                                                              
        3063          <operand 
        3064           value="%JA VA_VENDOR% "
        3065          />
        3066                                                              
        3067          <operand 
        3068           value="Sun "
        3069          />
        3070                                                     
        3071         </test>
        3072                                                    
        3073         <then>
        3074                                                              
        3075          <setenv 
        3076           name="JAVA _HOME"
        3077          >
        3078                                                                        
        3079           <value>
        3080            %SUN_JAVA_ HOME%
        3081           </value>
        3082                                                               
        3083          </setenv>
        3084                                                     
        3085         </then>
        3086                                                    
        3087         <else>
        3088                                                              
        3089          <setenv 
        3090           name="JAVA _VENDOR" 
        3091           scope="glo bal"
        3092          >
        3093                                                                        
        3094           <value>
        3095            @JAVA_VEND OR
        3096           </value>
        3097                                                               
        3098          </setenv>
        3099                                                              
        3100          <setenv 
        3101           name="JAVA _HOME"
        3102          >
        3103                                                                        
        3104           <value>
        3105            @JAVA_HOME
        3106           </value>
        3107                                                               
        3108          </setenv>
        3109                                                              
        3110          <setenv 
        3111           name="VM_T YPE"
        3112          >
        3113                                                                        
        3114           <value>
        3115            @VM_TYPE
        3116           </value>
        3117                                                               
        3118          </setenv>
        3119                                                     
        3120         </else>
        3121                                            
        3122        </if>
        3123                                  
        3124       </else>
        3125                        
        3126      </if>
        3127                       
        3128      <marker 
        3129       name="sect ion_marker _3" 
        3130       type="bloc kinsert" 
        3131       action="ap pend"
        3132      />
        3133                       
        3134      <comment>
        3135                                 
        3136       <value>
        3137        We need to  reset the  value of  JAVA_HOME  to get it  shortened  AND 
        3138       </value>
        3139                                 
        3140       <value>
        3141        we can not  shorten i t above be cause imme diate vari able expan sion will  blank it
        3142       </value>
        3143                        
        3144      </comment>
        3145                       
        3146      <setenv 
        3147       name="JAVA _HOME" 
        3148       shorten="t rue"
        3149      >
        3150                                 
        3151       <value>
        3152        %JAVA_HOME %
        3153       </value>
        3154                        
        3155      </setenv>
        3156                       
        3157      <setenv 
        3158       name="SAMP LES_HOME" 
        3159       scope="glo bal"
        3160      >
        3161                                 
        3162       <value>
        3163        %WL_HOME%\ samples
        3164       </value>
        3165                        
        3166      </setenv>
        3167                       
        3168      <setenv 
        3169       name="DOMA IN_HOME" 
        3170       shorten="t rue" 
        3171       scope="glo bal"
        3172      >
        3173                                 
        3174       <value>
        3175        @USERDOMAI N_HOME
        3176       </value>
        3177                        
        3178      </setenv>
        3179                       
        3180      <setenv 
        3181       name="LONG _DOMAIN_HO ME"
        3182      >
        3183                                 
        3184       <value>
        3185        @USERDOMAI N_HOME
        3186       </value>
        3187                        
        3188      </setenv>
        3189                       
        3190      <marker 
        3191       name="sect ion_marker _4" 
        3192       type="bloc kinsert" 
        3193       action="ap pend"
        3194      />
        3195                       
        3196      <if>
        3197                                 
        3198       <test 
        3199        type="stri ng"
        3200       >
        3201                                           
        3202        <operand 
        3203         value="%DE BUG_PORT%"
        3204        />
        3205                                           
        3206        <operand 
        3207         value=""
        3208        />
        3209                                  
        3210       </test>
        3211                                 
        3212       <then>
        3213                                           
        3214        <setenv 
        3215         name="DEBU G_PORT" 
        3216         scope="glo bal"
        3217        >
        3218                                                    
        3219         <value>
        3220          8453
        3221         </value>
        3222                                            
        3223        </setenv>
        3224                                  
        3225       </then>
        3226                        
        3227      </if>
        3228                       
        3229      <marker 
        3230       name="sect ion_marker _5" 
        3231       type="bloc kinsert" 
        3232       action="ap pend"
        3233      />
        3234                       
        3235      <if>
        3236                                 
        3237       <test 
        3238        type="stri ng"
        3239       >
        3240                                           
        3241        <operand 
        3242         value="%SE RVER_NAME% "
        3243        />
        3244                                           
        3245        <operand 
        3246         value=""
        3247        />
        3248                                  
        3249       </test>
        3250                                 
        3251       <then>
        3252                                           
        3253        <setenv 
        3254         name="SERV ER_NAME" 
        3255         scope="glo bal"
        3256        >
        3257                                                    
        3258         <value>
        3259          @SERVER_NA ME
        3260         </value>
        3261                                            
        3262        </setenv>
        3263                                  
        3264       </then>
        3265                        
        3266      </if>
        3267                       
        3268      <marker 
        3269       name="sect ion_marker _6" 
        3270       type="bloc kinsert" 
        3271       action="ap pend"
        3272      />
        3273                       
        3274      <marker 
        3275       name="debu gFlag" 
        3276       type="sete nv" 
        3277       action="re place"
        3278      />
        3279                       
        3280      <marker 
        3281       name="sect ion_marker _6A" 
        3282       type="bloc kinsert" 
        3283       action="ap pend"
        3284      />
        3285                       
        3286      <comment 
        3287       message="S et DERBY_F LAG, if de rby is ava ilable."
        3288      />
        3289                       
        3290      <if>
        3291                                 
        3292       <test 
        3293        type="file "
        3294       >
        3295                                           
        3296        <operand 
        3297         value="%WL _HOME%/com mon/derby/ lib/derby. jar"
        3298        />
        3299                                  
        3300       </test>
        3301                                 
        3302       <then>
        3303                                           
        3304        <setenv 
        3305         name="DERB Y_FLAG" 
        3306         scope="glo bal"
        3307        >
        3308                                                    
        3309         <value>
        3310          true
        3311         </value>
        3312                                            
        3313        </setenv>
        3314                                  
        3315       </then>
        3316                        
        3317      </if>
        3318                       
        3319      <marker 
        3320       name="sect ion_marker _7" 
        3321       type="bloc kinsert" 
        3322       action="ap pend"
        3323      />
        3324                       
        3325      <setenv 
        3326       name="enab leHotswapF lag" 
        3327       scope="glo bal"
        3328      >
        3329                                 
        3330       <value>
        3331       </value>
        3332                        
        3333      </setenv>
        3334                       
        3335      <comment/>
        3336                       
        3337      <setenv 
        3338       name="PROD UCTION_MOD E"
        3339      >
        3340                                 
        3341       <value>
        3342        @PRODUCTIO N_MODE
        3343       </value>
        3344                        
        3345      </setenv>
        3346                       
        3347      <marker 
        3348       name="sect ion_marker _8" 
        3349       type="bloc kinsert" 
        3350       action="ap pend"
        3351      />
        3352                       
        3353      <parseargs >
        3354                                 
        3355       <arg 
        3356        name="debu gFlag" 
        3357        switch="no debug"
        3358       >
        3359                                           
        3360        <setenv 
        3361         name="debu gFlag" 
        3362         scope="glo bal"
        3363        >
        3364                                                    
        3365         <value>
        3366          false
        3367         </value>
        3368                                            
        3369        </setenv>
        3370                                  
        3371       </arg>
        3372                                 
        3373       <arg 
        3374        name="DOMA IN_PRODUCT ION_MODE" 
        3375        switch="pr oduction"
        3376       >
        3377                                           
        3378        <setenv 
        3379         name="DOMA IN_PRODUCT ION_MODE"
        3380        >
        3381                                                    
        3382         <value>
        3383          true
        3384         </value>
        3385                                            
        3386        </setenv>
        3387                                  
        3388       </arg>
        3389                                 
        3390       <arg 
        3391        name="DERB Y_FLAG" 
        3392        switch="no derby"
        3393       >
        3394                                           
        3395        <setenv 
        3396         name="DERB Y_FLAG" 
        3397         scope="glo bal"
        3398        >
        3399                                                    
        3400         <value>
        3401          false
        3402         </value>
        3403                                            
        3404        </setenv>
        3405                                  
        3406       </arg>
        3407                                 
        3408       <arg 
        3409        name="doEx itFlag" 
        3410        switch="do Exit" 
        3411        default="f alse"
        3412       >
        3413                                           
        3414        <setenv 
        3415         name="doEx itFlag" 
        3416         scope="glo bal"
        3417        >
        3418                                                    
        3419         <value>
        3420          true
        3421         </value>
        3422                                            
        3423        </setenv>
        3424                                  
        3425       </arg>
        3426                                 
        3427       <arg 
        3428        name="doIg noreExitFl ag" 
        3429        switch="no Exit"
        3430       >
        3431                                           
        3432        <setenv 
        3433         name="doEx itFlag" 
        3434         scope="glo bal"
        3435        >
        3436                                                    
        3437         <value>
        3438          false
        3439         </value>
        3440                                            
        3441        </setenv>
        3442                                  
        3443       </arg>
        3444                                 
        3445       <arg 
        3446        name="verb oseLogging Flag" 
        3447        switch="ve rbose" 
        3448        default="f alse"
        3449       >
        3450                                           
        3451        <setenv 
        3452         name="verb oseLogging Flag" 
        3453         scope="glo bal"
        3454        >
        3455                                                    
        3456         <value>
        3457          true
        3458         </value>
        3459                                            
        3460        </setenv>
        3461                                  
        3462       </arg>
        3463                                 
        3464       <arg 
        3465        name="enab leHotswapF lag" 
        3466        switch="en ableHotswa p"
        3467       >
        3468                                           
        3469        <setenv 
        3470         name="enab leHotswapF lag" 
        3471         scope="glo bal"
        3472        >
        3473                                                    
        3474         <value>
        3475          -javaagent :%WL_HOME% /server/li b/diagnost ics-agent. jar
        3476         </value>
        3477                                            
        3478        </setenv>
        3479                                  
        3480       </arg>
        3481                                 
        3482       <arg 
        3483        name="null
        3484        switch="*"
        3485       >
        3486                                           
        3487        <setenv 
        3488         name="PROX Y_SETTINGS
        3489         scope="glo bal"
        3490        >
        3491                                                    
        3492         <value>
        3493          %PROXY_SET TINGS% %1
        3494         </value>
        3495                                            
        3496        </setenv>
        3497                                  
        3498       </arg>
        3499                        
        3500      </parsearg s>
        3501                       
        3502      <marker 
        3503       name="sect ion_marker _9" 
        3504       type="bloc kinsert" 
        3505       action="ap pend"
        3506      />
        3507                       
        3508      <setenv 
        3509       name="MEM_ DEV_ARGS" 
        3510       scope="glo bal"
        3511      >
        3512                                 
        3513       <value>
        3514       </value>
        3515                        
        3516      </setenv>
        3517                       
        3518      <comment/>
        3519                       
        3520      <if>
        3521                                 
        3522       <test 
        3523        type="stri ng"
        3524       >
        3525                                           
        3526        <operand 
        3527         value="%DO MAIN_PRODU CTION_MODE %"
        3528        />
        3529                                           
        3530        <operand 
        3531         value="tru e"
        3532        />
        3533                                  
        3534       </test>
        3535                                 
        3536       <then>
        3537                                           
        3538        <setenv 
        3539         name="PROD UCTION_MOD E" 
        3540         scope="glo bal"
        3541        >
        3542                                                    
        3543         <value>
        3544          %DOMAIN_PR ODUCTION_M ODE%
        3545         </value>
        3546                                            
        3547        </setenv>
        3548                                  
        3549       </then>
        3550                        
        3551      </if>
        3552                       
        3553      <marker 
        3554       name="sect ion_marker _10" 
        3555       type="bloc kinsert" 
        3556       action="ap pend"
        3557      />
        3558                       
        3559      <if>
        3560                                 
        3561       <test 
        3562        type="stri ng"
        3563       >
        3564                                           
        3565        <operand 
        3566         value="%PR ODUCTION_M ODE%"
        3567        />
        3568                                           
        3569        <operand 
        3570         value="tru e"
        3571        />
        3572                                  
        3573       </test>
        3574                                 
        3575       <then>
        3576                                           
        3577        <setenv 
        3578         name="debu gFlag" 
        3579         scope="glo bal"
        3580        >
        3581                                                    
        3582         <value>
        3583          false
        3584         </value>
        3585                                            
        3586        </setenv>
        3587                                  
        3588       </then>
        3589                        
        3590      </if>
        3591                       
        3592      <marker 
        3593       name="sect ion_marker _11" 
        3594       type="bloc kinsert" 
        3595       action="ap pend"
        3596      />
        3597                       
        3598      <comment>
        3599                                 
        3600       <value>
        3601        If you wan t to overr ide the de fault Patc h Classpat h, Library  Path and  Path for t his domain ,
        3602       </value>
        3603                                 
        3604       <value>
        3605        Please unc omment the  following  lines and  add a val id value f or the env ironment v ariables
        3606       </value>
        3607                                 
        3608       <value>
        3609        set PATCH_ CLASSPATH= [myPatchCl asspath] ( windows)
        3610       </value>
        3611                                 
        3612       <value>
        3613        set PATCH_ LIBPATH=[m yPatchLibp ath] (wind ows)
        3614       </value>
        3615                                 
        3616       <value>
        3617        set PATCH_ PATH=[myPa tchPath] ( windows)
        3618       </value>
        3619                                 
        3620       <value>
        3621        PATCH_CLAS SPATH=[myP atchClassp ath] (unix )
        3622       </value>
        3623                                 
        3624       <value>
        3625        PATCH_LIBP ATH=[myPat chLibpath]  (unix)
        3626       </value>
        3627                                 
        3628       <value>
        3629        PATCH_PATH =[myPatchP ath] (unix )
        3630       </value>
        3631                        
        3632      </comment>
        3633                       
        3634      <exec 
        3635       name="comm Env" 
        3636       type="scri pt"
        3637      >
        3638                                 
        3639       <cmd 
        3640        start="%WL _HOME%\com mon\bin\co mmEnv" 
        3641        min="false
        3642        source="tr ue"
        3643       />
        3644                        
        3645      </exec>
        3646                       
        3647      <marker 
        3648       name="sect ion_marker _12" 
        3649       type="bloc kinsert" 
        3650       action="ap pend"
        3651      />
        3652                       
        3653      <setenv 
        3654       name="WLS_ HOME"
        3655      >
        3656                                 
        3657       <value>
        3658        %WL_HOME%\ server
        3659       </value>
        3660                        
        3661      </setenv>
        3662                       
        3663      <marker 
        3664       name="sect ion_marker _13" 
        3665       type="bloc kinsert" 
        3666       action="ap pend"
        3667      />
        3668                       
        3669      <setenv 
        3670       name="WLS_ MEM_ARGS_6 4BIT" 
        3671       scope="glo bal"
        3672      >
        3673                                 
        3674       <value>
        3675        -Xms512m - Xmx512m
        3676       </value>
        3677                        
        3678      </setenv>
        3679                       
        3680      <setenv 
        3681       name="WLS_ MEM_ARGS_3 2BIT" 
        3682       scope="glo bal"
        3683      >
        3684                                 
        3685       <value>
        3686        -Xms512m - Xmx512m
        3687       </value>
        3688                        
        3689      </setenv>
        3690                       
        3691      <if>
        3692                                 
        3693       <test 
        3694        type="stri ng" 
        3695        not="true"
        3696       >
        3697                                           
        3698        <operand 
        3699         value="%JA VA_VENDOR% "
        3700        />
        3701                                           
        3702        <operand 
        3703         value="HP"
        3704        />
        3705                                  
        3706       </test>
        3707                                 
        3708       <then>
        3709                                           
        3710        <if>
        3711                                                    
        3712         <test 
        3713          type="stri ng"
        3714         >
        3715                                                              
        3716          <operand 
        3717           value="%VM _TYPE%"
        3718          />
        3719                                                              
        3720          <operand 
        3721           value="Hot Spot"
        3722          />
        3723                                                     
        3724         </test>
        3725                                                    
        3726         <then>
        3727                                                              
        3728          <setenv 
        3729           name="WLS_ MEM_ARGS_6 4BIT" 
        3730           scope="glo bal"
        3731          >
        3732                                                                        
        3733           <value>
        3734            -Xms256m - Xmx512m
        3735           </value>
        3736                                                               
        3737          </setenv>
        3738                                                              
        3739          <setenv 
        3740           name="WLS_ MEM_ARGS_3 2BIT" 
        3741           scope="glo bal"
        3742          >
        3743                                                                        
        3744           <value>
        3745            -Xms256m - Xmx512m
        3746           </value>
        3747                                                               
        3748          </setenv>
        3749                                                     
        3750         </then>
        3751                                            
        3752        </if>
        3753                                  
        3754       </then>
        3755                        
        3756      </if>
        3757                       
        3758      <marker 
        3759       name="sect ion_marker _13a" 
        3760       type="bloc kinsert" 
        3761       action="re place"
        3762      />
        3763                       
        3764      <marker 
        3765       name="MEM_ ARGS_64BIT
        3766       type="sete nv" 
        3767       action="re place"
        3768      />
        3769                       
        3770      <setenv 
        3771       name="MEM_ ARGS_64BIT
        3772       scope="glo bal"
        3773      >
        3774                                 
        3775       <value>
        3776        %WLS_MEM_A RGS_64BIT%
        3777       </value>
        3778                        
        3779      </setenv>
        3780                       
        3781      <marker 
        3782       name="MEM_ ARGS_32BIT
        3783       type="sete nv" 
        3784       action="re place"
        3785      />
        3786                       
        3787      <setenv 
        3788       name="MEM_ ARGS_32BIT
        3789       scope="glo bal"
        3790      >
        3791                                 
        3792       <value>
        3793        %WLS_MEM_A RGS_32BIT%
        3794       </value>
        3795                        
        3796      </setenv>
        3797                       
        3798      <marker 
        3799       name="sect ion_marker _13b" 
        3800       type="bloc kinsert" 
        3801       action="re place"
        3802      />
        3803                       
        3804      <marker 
        3805       name="MEM_ ARGS" 
        3806       type="bloc kinsert" 
        3807       action="ap pend"
        3808      />
        3809                       
        3810      <if>
        3811                                 
        3812       <test 
        3813        type="stri ng"
        3814       >
        3815                                           
        3816        <operand 
        3817         value="%JA VA_USE_64B IT%"
        3818        />
        3819                                           
        3820        <operand 
        3821         value="tru e"
        3822        />
        3823                                  
        3824       </test>
        3825                                 
        3826       <then>
        3827                                           
        3828        <setenv 
        3829         name="MEM_ ARGS" 
        3830         scope="glo bal"
        3831        >
        3832                                                    
        3833         <value>
        3834          %MEM_ARGS_ 64BIT%
        3835         </value>
        3836                                            
        3837        </setenv>
        3838                                  
        3839       </then>
        3840                                 
        3841       <else>
        3842                                           
        3843        <setenv 
        3844         name="MEM_ ARGS" 
        3845         scope="glo bal"
        3846        >
        3847                                                    
        3848         <value>
        3849          %MEM_ARGS_ 32BIT%
        3850         </value>
        3851                                            
        3852        </setenv>
        3853                                  
        3854       </else>
        3855                        
        3856      </if>
        3857                       
        3858      <marker 
        3859       name="MEM_ PERM_SIZE_ 64BIT" 
        3860       type="sete nv" 
        3861       action="re place"
        3862      />
        3863                       
        3864      <setenv 
        3865       name="MEM_ PERM_SIZE_ 64BIT" 
        3866       scope="glo bal"
        3867      >
        3868                                 
        3869       <value>
        3870        -XX:PermSi ze=128m
        3871       </value>
        3872                        
        3873      </setenv>
        3874                       
        3875      <marker 
        3876       name="MEM_ PERM_SIZE_ 32BIT" 
        3877       type="sete nv" 
        3878       action="re place"
        3879      />
        3880                       
        3881      <setenv 
        3882       name="MEM_ PERM_SIZE_ 32BIT" 
        3883       scope="glo bal"
        3884      >
        3885                                 
        3886       <value>
        3887        -XX:PermSi ze=128m
        3888       </value>
        3889                        
        3890      </setenv>
        3891                       
        3892      <marker 
        3893       name="sect ion_marker _13c" 
        3894       type="bloc kinsert" 
        3895       action="re place"
        3896      />
        3897                       
        3898      <marker 
        3899       name="MEM_ PERM_SIZE"  
        3900       type="bloc kinsert" 
        3901       action="ap pend"
        3902      />
        3903                       
        3904      <if>
        3905                                 
        3906       <test 
        3907        type="stri ng"
        3908       >
        3909                                           
        3910        <operand 
        3911         value="%JA VA_USE_64B IT%"
        3912        />
        3913                                           
        3914        <operand 
        3915         value="tru e"
        3916        />
        3917                                  
        3918       </test>
        3919                                 
        3920       <then>
        3921                                           
        3922        <setenv 
        3923         name="MEM_ PERM_SIZE"  
        3924         scope="glo bal"
        3925        >
        3926                                                    
        3927         <value>
        3928          %MEM_PERM_ SIZE_64BIT %
        3929         </value>
        3930                                            
        3931        </setenv>
        3932                                  
        3933       </then>
        3934                                 
        3935       <else>
        3936                                           
        3937        <setenv 
        3938         name="MEM_ PERM_SIZE"  
        3939         scope="glo bal"
        3940        >
        3941                                                    
        3942         <value>
        3943          %MEM_PERM_ SIZE_32BIT %
        3944         </value>
        3945                                            
        3946        </setenv>
        3947                                  
        3948       </else>
        3949                        
        3950      </if>
        3951                       
        3952      <marker 
        3953       name="MEM_ MAX_PERM_S IZE_64BIT"  
        3954       type="sete nv" 
        3955       action="re place"
        3956      />
        3957                       
        3958      <setenv 
        3959       name="MEM_ MAX_PERM_S IZE_64BIT"  
        3960       scope="glo bal"
        3961      >
        3962                                 
        3963       <value>
        3964        -XX:MaxPer mSize=256m
        3965       </value>
        3966                        
        3967      </setenv>
        3968                       
        3969      <marker 
        3970       name="MEM_ MAX_PERM_S IZE_32BIT"  
        3971       type="sete nv" 
        3972       action="re place"
        3973      />
        3974                       
        3975      <setenv 
        3976       name="MEM_ MAX_PERM_S IZE_32BIT"  
        3977       scope="glo bal"
        3978      >
        3979                                 
        3980       <value>
        3981        -XX:MaxPer mSize=256m
        3982       </value>
        3983                        
        3984      </setenv>
        3985                       
        3986      <marker 
        3987       name="sect ion_marker _13d" 
        3988       type="bloc kinsert" 
        3989       action="re place"
        3990      />
        3991                       
        3992      <marker 
        3993       name="MEM_ MAX_PERM_S IZE" 
        3994       type="bloc kinsert" 
        3995       action="ap pend"
        3996      />
        3997                       
        3998      <if>
        3999                                 
        4000       <test 
        4001        type="stri ng"
        4002       >
        4003                                           
        4004        <operand 
        4005         value="%JA VA_USE_64B IT%"
        4006        />
        4007                                           
        4008        <operand 
        4009         value="tru e"
        4010        />
        4011                                  
        4012       </test>
        4013                                 
        4014       <then>
        4015                                           
        4016        <setenv 
        4017         name="MEM_ MAX_PERM_S IZE" 
        4018         scope="glo bal"
        4019        >
        4020                                                    
        4021         <value>
        4022          %MEM_MAX_P ERM_SIZE_6 4BIT%
        4023         </value>
        4024                                            
        4025        </setenv>
        4026                                  
        4027       </then>
        4028                                 
        4029       <else>
        4030                                           
        4031        <setenv 
        4032         name="MEM_ MAX_PERM_S IZE" 
        4033         scope="glo bal"
        4034        >
        4035                                                    
        4036         <value>
        4037          %MEM_MAX_P ERM_SIZE_3 2BIT%
        4038         </value>
        4039                                            
        4040        </setenv>
        4041                                  
        4042       </else>
        4043                        
        4044      </if>
        4045                       
        4046      <marker 
        4047       name="sect ion_marker _14" 
        4048       type="bloc kinsert" 
        4049       action="ap pend"
        4050      />
        4051                       
        4052      <if>
        4053                                 
        4054       <test 
        4055        type="stri ng" 
        4056        not="true"
        4057       >
        4058                                           
        4059        <operand 
        4060         value="%JA VA_VENDOR% "
        4061        />
        4062                                           
        4063        <operand 
        4064         value="HP"
        4065        />
        4066                                  
        4067       </test>
        4068                                 
        4069       <then>
        4070                                           
        4071        <if>
        4072                                                    
        4073         <test 
        4074          type="stri ng"
        4075         >
        4076                                                              
        4077          <operand 
        4078           value="%VM _TYPE%"
        4079          />
        4080                                                              
        4081          <operand 
        4082           value="Hot Spot"
        4083          />
        4084                                                     
        4085         </test>
        4086                                                    
        4087         <then>
        4088                                                              
        4089          <if>
        4090                                                                        
        4091           <test 
        4092            type="stri ng"
        4093           >
        4094                                                                                  
        4095            <operand 
        4096             value="%PR ODUCTION_M ODE%"
        4097            />
        4098                                                                                  
        4099            <operand 
        4100             value=""
        4101            />
        4102                                                                         
        4103           </test>
        4104                                                                        
        4105           <then>
        4106                                                                                  
        4107            <setenv 
        4108             name="MEM_ DEV_ARGS" 
        4109             scope="glo bal"
        4110            >
        4111                                                                                            
        4112             <value>
        4113              -XX:Compil eThreshold =8000 %MEM _PERM_SIZE
        4114             </value>
        4115                                                                                   
        4116            </setenv>
        4117                                                                         
        4118           </then>
        4119                                                               
        4120          </if>
        4121                                                     
        4122         </then>
        4123                                            
        4124        </if>
        4125                                  
        4126       </then>
        4127                        
        4128      </if>
        4129                       
        4130      <marker 
        4131       name="sect ion_marker _15" 
        4132       type="bloc kinsert" 
        4133       action="ap pend"
        4134      />
        4135                       
        4136      <comment 
        4137       message="H ad to have  a separat e test her e BECAUSE  of immedia te variabl e expansio n on windo ws"
        4138      />
        4139                       
        4140      <if>
        4141                                 
        4142       <test 
        4143        type="stri ng" 
        4144        not="true"
        4145       >
        4146                                           
        4147        <operand 
        4148         value="%JA VA_VENDOR% "
        4149        />
        4150                                           
        4151        <operand 
        4152         value="HP"
        4153        />
        4154                                  
        4155       </test>
        4156                                 
        4157       <then>
        4158                                           
        4159        <if>
        4160                                                    
        4161         <test 
        4162          type="stri ng"
        4163         >
        4164                                                              
        4165          <operand 
        4166           value="%VM _TYPE%"
        4167          />
        4168                                                              
        4169          <operand 
        4170           value="Hot Spot"
        4171          />
        4172                                                     
        4173         </test>
        4174                                                    
        4175         <then>
        4176                                                              
        4177          <setenv 
        4178           name="MEM_ ARGS" 
        4179           scope="glo bal"
        4180          >
        4181                                                                        
        4182           <value>
        4183            %MEM_ARGS%  %MEM_DEV_ ARGS% %MEM _MAX_PERM_ SIZE%
        4184           </value>
        4185                                                               
        4186          </setenv>
        4187                                                     
        4188         </then>
        4189                                            
        4190        </if>
        4191                                  
        4192       </then>
        4193                        
        4194      </if>
        4195                       
        4196      <marker 
        4197       name="sect ion_marker _16" 
        4198       type="bloc kinsert" 
        4199       action="ap pend"
        4200      />
        4201                       
        4202      <if>
        4203                                 
        4204       <test 
        4205        type="stri ng"
        4206       >
        4207                                           
        4208        <operand 
        4209         value="%JA VA_VENDOR% "
        4210        />
        4211                                           
        4212        <operand 
        4213         value="HP"
        4214        />
        4215                                  
        4216       </test>
        4217                                 
        4218       <then>
        4219                                           
        4220        <setenv 
        4221         name="MEM_ ARGS" 
        4222         scope="glo bal"
        4223        >
        4224                                                    
        4225         <value>
        4226          %MEM_ARGS%  %MEM_MAX_ PERM_SIZE%
        4227         </value>
        4228                                            
        4229        </setenv>
        4230                                  
        4231       </then>
        4232                        
        4233      </if>
        4234                       
        4235      <if>
        4236                                 
        4237       <test 
        4238        type="stri ng"
        4239       >
        4240                                           
        4241        <operand 
        4242         value="%JA VA_VENDOR% "
        4243        />
        4244                                           
        4245        <operand 
        4246         value="App le"
        4247        />
        4248                                  
        4249       </test>
        4250                                 
        4251       <then>
        4252                                           
        4253        <setenv 
        4254         name="MEM_ ARGS" 
        4255         scope="glo bal"
        4256        >
        4257                                                    
        4258         <value>
        4259          %MEM_ARGS%  %MEM_MAX_ PERM_SIZE%
        4260         </value>
        4261                                            
        4262        </setenv>
        4263                                  
        4264       </then>
        4265                        
        4266      </if>
        4267                       
        4268      <marker 
        4269       name="sect ion_marker _17" 
        4270       type="bloc kinsert" 
        4271       action="ap pend"
        4272      />
        4273                       
        4274      <marker 
        4275       name="sect ion_marker _17a" 
        4276       type="bloc kinsert" 
        4277       action="ap pend"
        4278      />
        4279                       
        4280      <comment 
        4281       message="S et server  startup co nfiguratio n, if avai lable."
        4282      />
        4283                       
        4284      <if>
        4285                                 
        4286       <test 
        4287        type="file
        4288        winScriptE xt=".cmd" 
        4289        unixScript Ext=".sh"
        4290       >
        4291                                           
        4292        <operand 
        4293         value="%DO MAIN_HOME% /bin/setSt artupEnv"
        4294        />
        4295                                  
        4296       </test>
        4297                                 
        4298       <then>
        4299                                           
        4300        <exec 
        4301         name="setS tartupEnv"  
        4302         type="scri pt"
        4303        >
        4304                                                    
        4305         <cmd 
        4306          start="%DO MAIN_HOME% /bin/setSt artupEnv" 
        4307          min="false
        4308          source="tr ue"
        4309         />
        4310                                            
        4311        </exec>
        4312                                  
        4313       </then>
        4314                        
        4315      </if>
        4316                       
        4317      <marker 
        4318       name="sect ion_marker _17b" 
        4319       type="bloc kinsert" 
        4320       action="ap pend"
        4321      />
        4322                       
        4323      <comment 
        4324       message="S et user ov errides, i f availabl e."
        4325      />
        4326                       
        4327      <if>
        4328                                 
        4329       <test 
        4330        type="file
        4331        winScriptE xt=".cmd" 
        4332        unixScript Ext=".sh"
        4333       >
        4334                                           
        4335        <operand 
        4336         value="%DO MAIN_HOME% /bin/setUs erOverride s"
        4337        />
        4338                                  
        4339       </test>
        4340                                 
        4341       <then>
        4342                                           
        4343        <exec 
        4344         name="setU serOverrid es" 
        4345         type="scri pt"
        4346        >
        4347                                                    
        4348         <cmd 
        4349          start="%DO MAIN_HOME% /bin/setUs erOverride s" 
        4350          min="false
        4351          source="tr ue"
        4352         />
        4353                                            
        4354        </exec>
        4355                                  
        4356       </then>
        4357                        
        4358      </if>
        4359                       
        4360      <marker 
        4361       name="sect ion_marker _17c" 
        4362       type="bloc kinsert" 
        4363       action="ap pend"
        4364      />
        4365                       
        4366      <comment 
        4367       message="I F USER_MEM _ARGS the  environmen t variable  is set, u se it to o verride AL L MEM_ARGS  values"
        4368      />
        4369                       
        4370      <if>
        4371                                 
        4372       <test 
        4373        type="stri ng" 
        4374        not="true"
        4375       >
        4376                                           
        4377        <operand 
        4378         value="%US ER_MEM_ARG S%"
        4379        />
        4380                                           
        4381        <operand 
        4382         value=""
        4383        />
        4384                                  
        4385       </test>
        4386                                 
        4387       <then>
        4388                                           
        4389        <setenv 
        4390         name="MEM_ ARGS" 
        4391         scope="glo bal"
        4392        >
        4393                                                    
        4394         <value>
        4395          %USER_MEM_ ARGS%
        4396         </value>
        4397                                            
        4398        </setenv>
        4399                                  
        4400       </then>
        4401                        
        4402      </if>
        4403                       
        4404      <marker 
        4405       name="sect ion_marker _18" 
        4406       type="bloc kinsert" 
        4407       action="ap pend"
        4408      />
        4409                       
        4410      <setenv 
        4411       name="JAVA _PROPERTIE S" 
        4412       scope="glo bal"
        4413      >
        4414                                 
        4415       <value>
        4416        -Dwls.home =%WLS_HOME % -Dweblog ic.home=%W LS_HOME% 
        4417       </value>
        4418                        
        4419      </setenv>
        4420                       
        4421      <marker 
        4422       name="sect ion_marker _19" 
        4423       type="bloc kinsert" 
        4424       action="ap pend"
        4425      />
        4426                       
        4427      <marker 
        4428       name="sect ion_marker _19a" 
        4429       type="bloc kinsert" 
        4430       action="ap pend"
        4431      />
        4432                       
        4433      <comment>
        4434                                 
        4435       <value>
        4436         To use Ja va Authori zation Con tract for  Containers  (JACC) in  this doma in, 
        4437       </value>
        4438                                 
        4439       <value>
        4440         please un comment th e followin g section.  If there  are multip le machine s in 
        4441       </value>
        4442                                 
        4443       <value>
        4444         your doma in, be sur e to edit  the setDom ainEnv in  the associ ated domai n on 
        4445       </value>
        4446                                 
        4447       <value>
        4448         each mach ine.
        4449       </value>
        4450                                 
        4451       <value>
        4452       </value>
        4453                                 
        4454       <value>
        4455        -Djava.sec urity.mana ger
        4456       </value>
        4457                                 
        4458       <value>
        4459        -Djava.sec urity.poli cy=locatio n of weblo gic.policy
        4460       </value>
        4461                                 
        4462       <value>
        4463        -Djavax.se curity.jac c.policy.p rovider=we blogic.sec urity.jacc .simplepro vider.Simp leJACCPoli cy
        4464       </value>
        4465                                 
        4466       <value>
        4467        -Djavax.se curity.jac c.PolicyCo nfiguratio nFactory.p rovider=we blogic.sec urity.jacc .simplepro vider.Poli cyConfigur ationFacto ryImpl
        4468       </value>
        4469                                 
        4470       <value>
        4471        -Dweblogic .security. jacc.RoleM apperFacto ry.provide r=weblogic .security. jacc.simpl eprovider. RoleMapper FactoryImp l
        4472       </value>
        4473                        
        4474      </comment>
        4475                       
        4476      <marker 
        4477       name="sect ion_marker _19b" 
        4478       type="bloc kinsert" 
        4479       action="ap pend"
        4480      />
        4481                       
        4482      <marker 
        4483       name="EXTR A_JAVA_PRO PERTIES" 
        4484       type="sete nv" 
        4485       action="in sert"
        4486      />
        4487                       
        4488      <setenv 
        4489       name="JAVA _PROPERTIE S" 
        4490       scope="glo bal"
        4491      >
        4492                                 
        4493       <value>
        4494        %JAVA_PROP ERTIES% %E XTRA_JAVA_ PROPERTIES %
        4495       </value>
        4496                        
        4497      </setenv>
        4498                       
        4499      <setenv 
        4500       name="ARDI R"
        4501      >
        4502                                 
        4503       <value>
        4504        %WL_HOME%\ server\lib
        4505       </value>
        4506                        
        4507      </setenv>
        4508                       
        4509      <marker 
        4510       name="sect ion_marker _20" 
        4511       type="bloc kinsert" 
        4512       action="ap pend"
        4513      />
        4514                       
        4515      <pushd 
        4516       path="%LON G_DOMAIN_H OME%"
        4517      />
        4518                       
        4519      <comment 
        4520       message="C lustering  support (e dit for yo ur cluster !)"
        4521      />
        4522                       
        4523      <if>
        4524                                 
        4525       <test 
        4526        type="stri ng"
        4527       >
        4528                                           
        4529        <operand 
        4530         value="%AD MIN_URL%"
        4531        />
        4532                                           
        4533        <operand 
        4534         value=""
        4535        />
        4536                                  
        4537       </test>
        4538                                 
        4539       <then>
        4540                                           
        4541        <comment 
        4542         message="T he then pa rt of this  block is  telling us  we are ei ther start ing an adm in server  OR we are  non-cluste red"
        4543        />
        4544                                           
        4545        <setenv 
        4546         name="CLUS TER_PROPER TIES" 
        4547         scope="glo bal"
        4548        >
        4549                                                    
        4550         <value>
        4551         </value>
        4552                                            
        4553        </setenv>
        4554                                  
        4555       </then>
        4556                                 
        4557       <else>
        4558                                           
        4559        <setenv 
        4560         name="CLUS TER_PROPER TIES" 
        4561         scope="glo bal"
        4562        >
        4563                                                    
        4564         <value>
        4565          -Dweblogic .managemen t.server=% ADMIN_URL%
        4566         </value>
        4567                                            
        4568        </setenv>
        4569                                  
        4570       </else>
        4571                        
        4572      </if>
        4573                       
        4574      <marker 
        4575       name="sect ion_marker _21" 
        4576       type="bloc kinsert" 
        4577       action="ap pend"
        4578      />
        4579                       
        4580      <marker 
        4581       name="LOG4 J_CONFIG_F ILE" 
        4582       type="sete nv" 
        4583       action="in sert"
        4584      />
        4585                       
        4586      <if>
        4587                                 
        4588       <test 
        4589        type="stri ng" 
        4590        not="true"
        4591       >
        4592                                           
        4593        <operand 
        4594         value="%LO G4J_CONFIG _FILE%"
        4595        />
        4596                                           
        4597        <operand 
        4598         value=""
        4599        />
        4600                                  
        4601       </test>
        4602                                 
        4603       <then>
        4604                                           
        4605        <setenv 
        4606         name="JAVA _PROPERTIE S"
        4607        >
        4608                                                    
        4609         <value>
        4610          %JAVA_PROP ERTIES% -D log4j.conf iguration= file:%LOG4 J_CONFIG_F ILE%
        4611         </value>
        4612                                            
        4613        </setenv>
        4614                                  
        4615       </then>
        4616                        
        4617      </if>
        4618                       
        4619      <setenv 
        4620       name="JAVA _PROPERTIE S" 
        4621       scope="glo bal"
        4622      >
        4623                                 
        4624       <value>
        4625        %JAVA_PROP ERTIES% %C LUSTER_PRO PERTIES%
        4626       </value>
        4627                        
        4628      </setenv>
        4629                       
        4630      <marker 
        4631       name="sect ion_marker _21" 
        4632       type="bloc kinsert" 
        4633       action="ap pend"
        4634      />
        4635                       
        4636      <marker 
        4637       name="PRE_ CLASSPATH"  
        4638       type="sete nv" 
        4639       action="in sert"
        4640      />
        4641                       
        4642      <setenv 
        4643       name="JAVA _DEBUG" 
        4644       scope="glo bal"
        4645      >
        4646                        
        4647      </setenv>
        4648                       
        4649      <marker 
        4650       name="sect ion_marker _22" 
        4651       type="bloc kinsert" 
        4652       action="ap pend"
        4653      />
        4654                       
        4655      <if>
        4656                                 
        4657       <test 
        4658        type="stri ng"
        4659       >
        4660                                           
        4661        <operand 
        4662         value="%de bugFlag%"
        4663        />
        4664                                           
        4665        <operand 
        4666         value="tru e"
        4667        />
        4668                                  
        4669       </test>
        4670                                 
        4671       <then>
        4672                                           
        4673        <setenv 
        4674         name="JAVA _DEBUG" 
        4675         scope="glo bal"
        4676        >
        4677                                                    
        4678         <value>
        4679          -Xdebug -X noagent -X runjdwp:tr ansport=dt _socket,ad dress=%DEB UG_PORT%,s erver=y,su spend=n -D java.compi ler=NONE
        4680         </value>
        4681                                            
        4682        </setenv>
        4683                                           
        4684        <setenv 
        4685         name="JAVA _OPTIONS" 
        4686         scope="glo bal"
        4687        >
        4688                                                    
        4689         <value>
        4690          %JAVA_OPTI ONS% %enab leHotswapF lag% -ea - da:com.bea ... -da:ja velin... - da:weblogi c... -ea:c om.bea.wli ... -ea:co m.bea.brok er... -ea: com.bea.sb console...
        4691         </value>
        4692                                            
        4693        </setenv>
        4694                                  
        4695       </then>
        4696                                 
        4697       <else>
        4698                                           
        4699        <setenv 
        4700         name="JAVA _OPTIONS" 
        4701         scope="glo bal"
        4702        >
        4703                                                    
        4704         <value>
        4705          %JAVA_OPTI ONS% %enab leHotswapF lag% -da
        4706         </value>
        4707                                            
        4708        </setenv>
        4709                                  
        4710       </else>
        4711                        
        4712      </if>
        4713                       
        4714      <marker 
        4715       name="sect ion_marker _23" 
        4716       type="bloc kinsert" 
        4717       action="ap pend"
        4718      />
        4719                       
        4720      <if>
        4721                                 
        4722       <test 
        4723        type="dire ctory" 
        4724        not="true"
        4725       >
        4726                                           
        4727        <operand 
        4728         value="%JA VA_HOME%\l ib"
        4729        />
        4730                                  
        4731       </test>
        4732                                 
        4733       <then>
        4734                                           
        4735        <echo>
        4736                                                    
        4737         <value>
        4738          The JRE wa s not foun d in direc tory %JAVA _HOME%. (J AVA_HOME)
        4739         </value>
        4740                                                    
        4741         <value>
        4742          Please edi t your env ironment a nd set the  JAVA_HOME
        4743         </value>
        4744                                                    
        4745         <value>
        4746          variable t o point to  the root  directory  of your Ja va install ation.
        4747         </value>
        4748                                            
        4749        </echo>
        4750                                           
        4751        <popd/>
        4752                                           
        4753        <pause/>
        4754                                           
        4755        <exit/>
        4756                                  
        4757       </then>
        4758                        
        4759      </if>
        4760                       
        4761      <marker 
        4762       name="sect ion_marker _24" 
        4763       type="bloc kinsert" 
        4764       action="ap pend"
        4765      />
        4766                       
        4767      <if>
        4768                                 
        4769       <test 
        4770        type="stri ng"
        4771       >
        4772                                           
        4773        <operand 
        4774         value="%DE RBY_FLAG%"
        4775        />
        4776                                           
        4777        <operand 
        4778         value="tru e"
        4779        />
        4780                                  
        4781       </test>
        4782                                 
        4783       <then>
        4784                                           
        4785        <setenv 
        4786         name="DATA BASE_CLASS PATH"
        4787        >
        4788                                                    
        4789         <value>
        4790          %DERBY_CLA SSPATH%
        4791         </value>
        4792                                            
        4793        </setenv>
        4794                                  
        4795       </then>
        4796                                 
        4797       <else>
        4798                                           
        4799        <setenv 
        4800         name="DATA BASE_CLASS PATH"
        4801        >
        4802                                                    
        4803         <value>
        4804          %DERBY_CLI ENT_CLASSP ATH%
        4805         </value>
        4806                                            
        4807        </setenv>
        4808                                  
        4809       </else>
        4810                        
        4811      </if>
        4812                       
        4813      <marker 
        4814       name="sect ion_marker _25" 
        4815       type="bloc kinsert" 
        4816       action="ap pend"
        4817      />
        4818                       
        4819      <marker 
        4820       name="POST _CLASSPATH
        4821       type="sete nv" 
        4822       action="in sert"
        4823      />
        4824                       
        4825      <if>
        4826                                 
        4827       <test 
        4828        type="stri ng" 
        4829        not="true"
        4830       >
        4831                                           
        4832        <operand 
        4833         value="%DA TABASE_CLA SSPATH%"
        4834        />
        4835                                           
        4836        <operand 
        4837         value=""
        4838        />
        4839                                  
        4840       </test>
        4841                                 
        4842       <then>
        4843                                           
        4844        <if>
        4845                                                    
        4846         <test 
        4847          type="stri ng" 
        4848          not="true"
        4849         >
        4850                                                              
        4851          <operand 
        4852           value="%PO ST_CLASSPA TH%"
        4853          />
        4854                                                              
        4855          <operand 
        4856           value=""
        4857          />
        4858                                                     
        4859         </test>
        4860                                                    
        4861         <then>
        4862                                                              
        4863          <setenv 
        4864           name="POST _CLASSPATH
        4865           filterEmpt yVal="true "
        4866          >
        4867                                                                        
        4868           <value>
        4869            %POST_CLAS SPATH%
        4870           </value>
        4871                                                                        
        4872           <value>
        4873            %DATABASE_ CLASSPATH%
        4874           </value>
        4875                                                               
        4876          </setenv>
        4877                                                     
        4878         </then>
        4879                                                    
        4880         <else>
        4881                                                              
        4882          <setenv 
        4883           name="POST _CLASSPATH
        4884           filterEmpt yVal="true "
        4885          >
        4886                                                                        
        4887           <value>
        4888            %DATABASE_ CLASSPATH%
        4889           </value>
        4890                                                               
        4891          </setenv>
        4892                                                     
        4893         </else>
        4894                                            
        4895        </if>
        4896                                  
        4897       </then>
        4898                        
        4899      </if>
        4900                       
        4901      <if>
        4902                                 
        4903       <test 
        4904        type="stri ng" 
        4905        not="true"
        4906       >
        4907                                           
        4908        <operand 
        4909         value="%AR DIR%"
        4910        />
        4911                                           
        4912        <operand 
        4913         value=""
        4914        />
        4915                                  
        4916       </test>
        4917                                 
        4918       <then>
        4919                                           
        4920        <if>
        4921                                                    
        4922         <test 
        4923          type="stri ng" 
        4924          not="true"
        4925         >
        4926                                                              
        4927          <operand 
        4928           value="%PO ST_CLASSPA TH%"
        4929          />
        4930                                                              
        4931          <operand 
        4932           value=""
        4933          />
        4934                                                     
        4935         </test>
        4936                                                    
        4937         <then>
        4938                                                              
        4939          <setenv 
        4940           name="POST _CLASSPATH
        4941           filterEmpt yVal="true "
        4942          >
        4943                                                                        
        4944           <value>
        4945            %POST_CLAS SPATH%
        4946           </value>
        4947                                                                        
        4948           <value>
        4949            %ARDIR%\xq rl.jar
        4950           </value>
        4951                                                               
        4952          </setenv>
        4953                                                     
        4954         </then>
        4955                                                    
        4956         <else>
        4957                                                              
        4958          <setenv 
        4959           name="POST _CLASSPATH
        4960           filterEmpt yVal="true "
        4961          >
        4962                                                                        
        4963           <value>
        4964            %ARDIR%\xq rl.jar
        4965           </value>
        4966                                                               
        4967          </setenv>
        4968                                                     
        4969         </else>
        4970                                            
        4971        </if>
        4972                                  
        4973       </then>
        4974                        
        4975      </if>
        4976                       
        4977      <marker 
        4978       name="sect ion_marker _26" 
        4979       type="bloc kinsert" 
        4980       action="ap pend"
        4981      />
        4982                       
        4983      <comment 
        4984       message="P ROFILING S UPPORT"
        4985      />
        4986                       
        4987      <setenv 
        4988       name="JAVA _PROFILE"
        4989      >
        4990                        
        4991      </setenv>
        4992                       
        4993      <setenv 
        4994       name="SERV ER_CLASS" 
        4995       scope="glo bal"
        4996      >
        4997                                 
        4998       <value>
        4999        weblogic.S erver
        5000       </value>
        5001                        
        5002      </setenv>
        5003                       
        5004      <marker 
        5005       name="WLP_ HOME" 
        5006       type="sete nv" 
        5007       action="in sert"
        5008      />
        5009                       
        5010      <marker 
        5011       name="P13N _HOME" 
        5012       type="sete nv" 
        5013       action="in sert"
        5014      />
        5015                       
        5016      <marker 
        5017       name="WLP_ POST_CLASS PATH" 
        5018       type="sete nv" 
        5019       action="in sert"
        5020      />
        5021                       
        5022      <marker 
        5023       name="HARM ONY_PORTLE TS_PROPERT IES" 
        5024       type="sete nv" 
        5025       action="in sert"
        5026      />
        5027                       
        5028      <marker 
        5029       name="WLP_ JAVA_PROPE RTIES" 
        5030       type="sete nv" 
        5031       action="in sert"
        5032      />
        5033                       
        5034      <setenv 
        5035       name="JAVA _PROPERTIE S" 
        5036       scope="glo bal"
        5037      >
        5038                                 
        5039       <value>
        5040        %JAVA_PROP ERTIES% %W LP_JAVA_PR OPERTIES%
        5041       </value>
        5042                        
        5043      </setenv>
        5044                       
        5045      <marker 
        5046       name="LD_c allSetEnv"  
        5047       type="exec
        5048       action="in sert"
        5049      />
        5050                       
        5051      <setenv 
        5052       name="JAVA _OPTIONS"
        5053      >
        5054                                 
        5055       <value>
        5056        %JAVA_OPTI ONS% %JAVA _PROPERTIE S%
        5057       </value>
        5058                        
        5059      </setenv>
        5060                       
        5061      <if>
        5062                                 
        5063       <test 
        5064        type="stri ng"
        5065       >
        5066                                           
        5067        <operand 
        5068         value="%PR ODUCTION_M ODE%"
        5069        />
        5070                                           
        5071        <operand 
        5072         value="tru e"
        5073        />
        5074                                  
        5075       </test>
        5076                                 
        5077       <then>
        5078                                           
        5079        <setenv 
        5080         name="JAVA _OPTIONS" 
        5081         scope="glo bal"
        5082        >
        5083                                                    
        5084         <value>
        5085           -Dweblogi c.Producti onModeEnab led=true % JAVA_OPTIO NS%
        5086         </value>
        5087                                            
        5088        </setenv>
        5089                                  
        5090       </then>
        5091                        
        5092      </if>
        5093                       
        5094      <marker 
        5095       name="sect ion_marker _27" 
        5096       type="bloc kinsert" 
        5097       action="ap pend"
        5098      />
        5099                       
        5100      <comment 
        5101       message="- - Setup pr operties s o that we  can save s tdout and  stderr to  files"
        5102      />
        5103                       
        5104      <if>
        5105                                 
        5106       <test 
        5107        type="stri ng" 
        5108        not="true"
        5109       >
        5110                                           
        5111        <operand 
        5112         value="%WL S_STDOUT_L OG%"
        5113        />
        5114                                           
        5115        <operand 
        5116         value=""
        5117        />
        5118                                  
        5119       </test>
        5120                                 
        5121       <then>
        5122                                           
        5123        <echo 
        5124         message="L ogging WLS  stdout to  %WLS_STDO UT_LOG%"
        5125        />
        5126                                           
        5127        <setenv 
        5128         name="JAVA _OPTIONS"
        5129        >
        5130                                                    
        5131         <value>
        5132          %JAVA_OPTI ONS% -Dweb logic.Stdo ut=%WLS_ST DOUT_LOG%
        5133         </value>
        5134                                            
        5135        </setenv>
        5136                                  
        5137       </then>
        5138                        
        5139      </if>
        5140                       
        5141      <marker 
        5142       name="sect ion_marker _28" 
        5143       type="bloc kinsert" 
        5144       action="ap pend"
        5145      />
        5146                       
        5147      <if>
        5148                                 
        5149       <test 
        5150        type="stri ng" 
        5151        not="true"
        5152       >
        5153                                           
        5154        <operand 
        5155         value="%WL S_STDERR_L OG%"
        5156        />
        5157                                           
        5158        <operand 
        5159         value=""
        5160        />
        5161                                  
        5162       </test>
        5163                                 
        5164       <then>
        5165                                           
        5166        <echo 
        5167         message="L ogging WLS  stderr to  %WLS_STDE RR_LOG%"
        5168        />
        5169                                           
        5170        <setenv 
        5171         name="JAVA _OPTIONS"
        5172        >
        5173                                                    
        5174         <value>
        5175          %JAVA_OPTI ONS% -Dweb logic.Stde rr=%WLS_ST DERR_LOG%
        5176         </value>
        5177                                            
        5178        </setenv>
        5179                                  
        5180       </then>
        5181                        
        5182      </if>
        5183                       
        5184      <marker 
        5185       name="sect ion_marker _29" 
        5186       type="bloc kinsert" 
        5187       action="ap pend"
        5188      />
        5189                       
        5190      <comment 
        5191       message="A DD EXTENSI ONS TO CLA SSPATHS"
        5192      />
        5193                       
        5194      <if>
        5195                                 
        5196       <test 
        5197        type="stri ng" 
        5198        not="true"
        5199       >
        5200                                           
        5201        <operand 
        5202         value="%EX T_PRE_CLAS SPATH%"
        5203        />
        5204                                           
        5205        <operand 
        5206         value=""
        5207        />
        5208                                  
        5209       </test>
        5210                                 
        5211       <then>
        5212                                           
        5213        <if>
        5214                                                    
        5215         <test 
        5216          type="stri ng" 
        5217          not="true"
        5218         >
        5219                                                              
        5220          <operand 
        5221           value="%PR E_CLASSPAT H%"
        5222          />
        5223                                                              
        5224          <operand 
        5225           value=""
        5226          />
        5227                                                     
        5228         </test>
        5229                                                    
        5230         <then>
        5231                                                              
        5232          <setenv 
        5233           name="PRE_ CLASSPATH"  
        5234           filterEmpt yVal="true "
        5235          >
        5236                                                                        
        5237           <value>
        5238            %EXT_PRE_C LASSPATH%
        5239           </value>
        5240                                                                        
        5241           <value>
        5242            %PRE_CLASS PATH%
        5243           </value>
        5244                                                               
        5245          </setenv>
        5246                                                     
        5247         </then>
        5248                                                    
        5249         <else>
        5250                                                              
        5251          <setenv 
        5252           name="PRE_ CLASSPATH"  
        5253           filterEmpt yVal="true "
        5254          >
        5255                                                                        
        5256           <value>
        5257            %EXT_PRE_C LASSPATH%
        5258           </value>
        5259                                                               
        5260          </setenv>
        5261                                                     
        5262         </else>
        5263                                            
        5264        </if>
        5265                                  
        5266       </then>
        5267                        
        5268      </if>
        5269                       
        5270      <marker 
        5271       name="sect ion_marker _30" 
        5272       type="bloc kinsert" 
        5273       action="ap pend"
        5274      />
        5275                       
        5276      <if>
        5277                                 
        5278       <test 
        5279        type="stri ng" 
        5280        not="true"
        5281       >
        5282                                           
        5283        <operand 
        5284         value="%EX T_POST_CLA SSPATH%"
        5285        />
        5286                                           
        5287        <operand 
        5288         value=""
        5289        />
        5290                                  
        5291       </test>
        5292                                 
        5293       <then>
        5294                                           
        5295        <if>
        5296                                                    
        5297         <test 
        5298          type="stri ng" 
        5299          not="true"
        5300         >
        5301                                                              
        5302          <operand 
        5303           value="%PO ST_CLASSPA TH%"
        5304          />
        5305                                                              
        5306          <operand 
        5307           value=""
        5308          />
        5309                                                     
        5310         </test>
        5311                                                    
        5312         <then>
        5313                                                              
        5314          <setenv 
        5315           name="POST _CLASSPATH
        5316           filterEmpt yVal="true "
        5317          >
        5318                                                                        
        5319           <value>
        5320            %POST_CLAS SPATH%
        5321           </value>
        5322                                                                        
        5323           <value>
        5324            %EXT_POST_ CLASSPATH%
        5325           </value>
        5326                                                               
        5327          </setenv>
        5328                                                     
        5329         </then>
        5330                                                    
        5331         <else>
        5332                                                              
        5333          <setenv 
        5334           name="POST _CLASSPATH
        5335           filterEmpt yVal="true "
        5336          >
        5337                                                                        
        5338           <value>
        5339            %EXT_POST_ CLASSPATH%
        5340           </value>
        5341                                                               
        5342          </setenv>
        5343                                                     
        5344         </else>
        5345                                            
        5346        </if>
        5347                                  
        5348       </then>
        5349                        
        5350      </if>
        5351                       
        5352      <marker 
        5353       name="sect ion_marker _31" 
        5354       type="bloc kinsert" 
        5355       action="ap pend"
        5356      />
        5357                       
        5358      <marker 
        5359       name="WEBL OGIC_EXTEN SION_DIRS"  
        5360       type="sete nv" 
        5361       action="in sert"
        5362      />
        5363                       
        5364      <if>
        5365                                 
        5366       <test 
        5367        type="stri ng" 
        5368        not="true"
        5369       >
        5370                                           
        5371        <operand 
        5372         value="%WE BLOGIC_EXT ENSION_DIR S%"
        5373        />
        5374                                           
        5375        <operand 
        5376         value=""
        5377        />
        5378                                  
        5379       </test>
        5380                                 
        5381       <then>
        5382                                           
        5383        <setenv 
        5384         name="JAVA _OPTIONS"
        5385        >
        5386                                                    
        5387         <value>
        5388          %JAVA_OPTI ONS% -Dweb logic.ext. dirs=%WEBL OGIC_EXTEN SION_DIRS%
        5389         </value>
        5390                                            
        5391        </setenv>
        5392                                  
        5393       </then>
        5394                        
        5395      </if>
        5396                       
        5397      <marker 
        5398       name="sect ion_marker _32" 
        5399       type="bloc kinsert" 
        5400       action="ap pend"
        5401      />
        5402                       
        5403      <setenv 
        5404       name="JAVA _OPTIONS" 
        5405       scope="glo bal"
        5406      >
        5407                                 
        5408       <value>
        5409        %JAVA_OPTI ONS%
        5410       </value>
        5411                        
        5412      </setenv>
        5413                       
        5414      <marker 
        5415       name="sect ion_marker _33" 
        5416       type="bloc kinsert" 
        5417       action="ap pend"
        5418      />
        5419                       
        5420      <comment 
        5421       message="S ET THE CLA SSPATH"
        5422      />
        5423                       
        5424      <if>
        5425                                 
        5426       <test 
        5427        type="stri ng" 
        5428        not="true"
        5429       >
        5430                                           
        5431        <operand 
        5432         value="%WL P_POST_CLA SSPATH%"
        5433        />
        5434                                           
        5435        <operand 
        5436         value=""
        5437        />
        5438                                  
        5439       </test>
        5440                                 
        5441       <then>
        5442                                           
        5443        <if>
        5444                                                    
        5445         <test 
        5446          type="stri ng" 
        5447          not="true"
        5448         >
        5449                                                              
        5450          <operand 
        5451           value="%CL ASSPATH%"
        5452          />
        5453                                                              
        5454          <operand 
        5455           value=""
        5456          />
        5457                                                     
        5458         </test>
        5459                                                    
        5460         <then>
        5461                                                              
        5462          <setenv 
        5463           name="CLAS SPATH" 
        5464           filterEmpt yVal="true "
        5465          >
        5466                                                                        
        5467           <value>
        5468            %WLP_POST_ CLASSPATH%
        5469           </value>
        5470                                                                        
        5471           <value>
        5472            %CLASSPATH %
        5473           </value>
        5474                                                               
        5475          </setenv>
        5476                                                     
        5477         </then>
        5478                                                    
        5479         <else>
        5480                                                              
        5481          <setenv 
        5482           name="CLAS SPATH" 
        5483           filterEmpt yVal="true "
        5484          >
        5485                                                                        
        5486           <value>
        5487            %WLP_POST_ CLASSPATH%
        5488           </value>
        5489                                                               
        5490          </setenv>
        5491                                                     
        5492         </else>
        5493                                            
        5494        </if>
        5495                                  
        5496       </then>
        5497                        
        5498      </if>
        5499                       
        5500      <if>
        5501                                 
        5502       <test 
        5503        type="stri ng" 
        5504        not="true"
        5505       >
        5506                                           
        5507        <operand 
        5508         value="%PO ST_CLASSPA TH%"
        5509        />
        5510                                           
        5511        <operand 
        5512         value=""
        5513        />
        5514                                  
        5515       </test>
        5516                                 
        5517       <then>
        5518                                           
        5519        <if>
        5520                                                    
        5521         <test 
        5522          type="stri ng" 
        5523          not="true"
        5524         >
        5525                                                              
        5526          <operand 
        5527           value="%CL ASSPATH%"
        5528          />
        5529                                                              
        5530          <operand 
        5531           value=""
        5532          />
        5533                                                     
        5534         </test>
        5535                                                    
        5536         <then>
        5537                                                              
        5538          <setenv 
        5539           name="CLAS SPATH" 
        5540           filterEmpt yVal="true "
        5541          >
        5542                                                                        
        5543           <value>
        5544            %POST_CLAS SPATH%
        5545           </value>
        5546                                                                        
        5547           <value>
        5548            %CLASSPATH %
        5549           </value>
        5550                                                               
        5551          </setenv>
        5552                                                     
        5553         </then>
        5554                                                    
        5555         <else>
        5556                                                              
        5557          <setenv 
        5558           name="CLAS SPATH" 
        5559           filterEmpt yVal="true "
        5560          >
        5561                                                                        
        5562           <value>
        5563            %POST_CLAS SPATH%
        5564           </value>
        5565                                                               
        5566          </setenv>
        5567                                                     
        5568         </else>
        5569                                            
        5570        </if>
        5571                                  
        5572       </then>
        5573                        
        5574      </if>
        5575                       
        5576      <if>
        5577                                 
        5578       <test 
        5579        type="stri ng" 
        5580        not="true"
        5581       >
        5582                                           
        5583        <operand 
        5584         value="%WE BLOGIC_CLA SSPATH%"
        5585        />
        5586                                           
        5587        <operand 
        5588         value=""
        5589        />
        5590                                  
        5591       </test>
        5592                                 
        5593       <then>
        5594                                           
        5595        <if>
        5596                                                    
        5597         <test 
        5598          type="stri ng" 
        5599          not="true"
        5600         >
        5601                                                              
        5602          <operand 
        5603           value="%CL ASSPATH%"
        5604          />
        5605                                                              
        5606          <operand 
        5607           value=""
        5608          />
        5609                                                     
        5610         </test>
        5611                                                    
        5612         <then>
        5613                                                              
        5614          <setenv 
        5615           name="CLAS SPATH" 
        5616           filterEmpt yVal="true "
        5617          >
        5618                                                                        
        5619           <value>
        5620            %WEBLOGIC_ CLASSPATH%
        5621           </value>
        5622                                                                        
        5623           <value>
        5624            %CLASSPATH %
        5625           </value>
        5626                                                               
        5627          </setenv>
        5628                                                     
        5629         </then>
        5630                                                    
        5631         <else>
        5632                                                              
        5633          <setenv 
        5634           name="CLAS SPATH" 
        5635           filterEmpt yVal="true "
        5636          >
        5637                                                                        
        5638           <value>
        5639            %WEBLOGIC_ CLASSPATH%
        5640           </value>
        5641                                                               
        5642          </setenv>
        5643                                                     
        5644         </else>
        5645                                            
        5646        </if>
        5647                                  
        5648       </then>
        5649                        
        5650      </if>
        5651                       
        5652      <if>
        5653                                 
        5654       <test 
        5655        type="stri ng" 
        5656        not="true"
        5657       >
        5658                                           
        5659        <operand 
        5660         value="%PR E_CLASSPAT H%"
        5661        />
        5662                                           
        5663        <operand 
        5664         value=""
        5665        />
        5666                                  
        5667       </test>
        5668                                 
        5669       <then>
        5670                                           
        5671        <setenv 
        5672         name="CLAS SPATH" 
        5673         filterEmpt yVal="true "
        5674        >
        5675                                                    
        5676         <value>
        5677          %PRE_CLASS PATH%
        5678         </value>
        5679                                                    
        5680         <value>
        5681          %CLASSPATH %
        5682         </value>
        5683                                            
        5684        </setenv>
        5685                                  
        5686       </then>
        5687                        
        5688      </if>
        5689                       
        5690      <marker 
        5691       name="sect ion_marker _34" 
        5692       type="bloc kinsert" 
        5693       action="ap pend"
        5694      />
        5695                       
        5696      <if>
        5697                                 
        5698       <test 
        5699        type="stri ng" 
        5700        not="true"
        5701       >
        5702                                           
        5703        <operand 
        5704         value="%VM _TYPE%"
        5705        />
        5706                                           
        5707        <operand 
        5708         value="JRo ckit"
        5709        />
        5710                                  
        5711       </test>
        5712                                 
        5713       <then>
        5714                                           
        5715        <setenv 
        5716         name="JAVA _VM" 
        5717         scope="glo bal"
        5718        >
        5719                                                    
        5720         <value>
        5721          %JAVA_VM%  %JAVA_DEBU G% %JAVA_P ROFILE%
        5722         </value>
        5723                                            
        5724        </setenv>
        5725                                  
        5726       </then>
        5727                                 
        5728       <else>
        5729                                           
        5730        <setenv 
        5731         name="JAVA _VM" 
        5732         scope="glo bal"
        5733        >
        5734                                                    
        5735         <value>
        5736          %JAVA_VM%  %JAVA_DEBU G% %JAVA_P ROFILE%
        5737         </value>
        5738                                            
        5739        </setenv>
        5740                                  
        5741       </else>
        5742                        
        5743      </if>
        5744                       
        5745      <marker 
        5746       name="sect ion_marker _35" 
        5747       type="bloc kinsert" 
        5748       action="ap pend"
        5749      />
        5750                       
        5751      <if>
        5752                                 
        5753       <test 
        5754        type="stri ng"
        5755       >
        5756                                           
        5757        <operand 
        5758         value="%WL S_POLICY_F ILE%"
        5759        />
        5760                                           
        5761        <operand 
        5762         value=""
        5763        />
        5764                                  
        5765       </test>
        5766                                 
        5767       <then>
        5768                                           
        5769        <setenv 
        5770         name="WLS_ POLICY_FIL E"
        5771        >
        5772                                                    
        5773         <value>
        5774          %WL_HOME%\ server\lib \weblogic. policy
        5775         </value>
        5776                                            
        5777        </setenv>
        5778                                  
        5779       </then>
        5780                        
        5781      </if>
        5782                       
        5783      <marker 
        5784       name="sect ion_marker _36" 
        5785       type="bloc kinsert" 
        5786       action="ap pend"
        5787      />
        5788              
        5789     </script>
        5790             
        5791     <script 
        5792      name="inst allNodeMgr Svc" 
        5793      version="3
        5794      path="bin"  
        5795      overwrite= "false" 
        5796      unixFileSe p="${CLASS PATHSEP}" 
        5797      unixGenDis able="true "
        5798     >
        5799                       
        5800      <comment>
        5801                                 
        5802       <value>
        5803        ********** ********** ********** ********** ********** ********** ********** ***
        5804       </value>
        5805                                 
        5806       <value>
        5807         This scri pt is used  to instal l a NodeMa nager Wind ows Servic e.
        5808       </value>
        5809                                 
        5810       <value>
        5811         This scri pt should  be used on ly when no de manager  is config ured per d omain.
        5812       </value>
        5813                                 
        5814       <value>
        5815         This scri pt sets th e followin g variable s before i nstalling 
        5816       </value>
        5817                                 
        5818       <value>
        5819         the Windo ws Service :
        5820       </value>
        5821                                 
        5822       <value>
        5823       </value>
        5824                                 
        5825       <value>
        5826         WL_HOME     - The ro ot directo ry of your  WebLogic  installati on
        5827       </value>
        5828                                 
        5829       <value>
        5830         PROD_NAME   - The pr oduct name . Here it  will produ ct name an d domain n ame
        5831       </value>
        5832                                 
        5833       <value>
        5834         NODEMGR_H OME - The  node manag er home.
        5835       </value>
        5836                                 
        5837       <value>
        5838         NODEMGR_H OST - The  node manag er host.
        5839       </value>
        5840                                 
        5841       <value>
        5842         NODEMGR_P ORT - The  node manag er port.
        5843       </value>
        5844                                 
        5845       <value>
        5846         ********* ********** ********** ********** ********** ********** ********** ****
        5847       </value>
        5848                        
        5849      </comment>
        5850                       
        5851      <marker 
        5852       name="sect ion_marker _1" 
        5853       type="bloc kinsert" 
        5854       action="ap pend"
        5855      />
        5856                       
        5857      <setenv 
        5858       name="WL_H OME" 
        5859       shorten="t rue"
        5860      >
        5861                                 
        5862       <value>
        5863        @WL_HOME
        5864       </value>
        5865                        
        5866      </setenv>
        5867                       
        5868      <setenv 
        5869       name="PROD _NAME" 
        5870       scope="glo bal"
        5871      >
        5872                                 
        5873       <value>
        5874        @PROD_NAME
        5875       </value>
        5876                        
        5877      </setenv>
        5878                       
        5879      <setenv 
        5880       name="NODE MGR_HOME" 
        5881       shorten="t rue" 
        5882       scope="glo bal"
        5883      >
        5884                                 
        5885       <value>
        5886        @NODEMGR_H OME
        5887       </value>
        5888                        
        5889      </setenv>
        5890                       
        5891      <setenv 
        5892       name="NODE MGR_HOST" 
        5893       scope="glo bal"
        5894      >
        5895                                 
        5896       <value>
        5897        @NODEMGR_H OST
        5898       </value>
        5899                        
        5900      </setenv>
        5901                       
        5902      <setenv 
        5903       name="NODE MGR_PORT" 
        5904       scope="glo bal"
        5905      >
        5906                                 
        5907       <value>
        5908        @NODEMGR_P ORT
        5909       </value>
        5910                        
        5911      </setenv>
        5912                       
        5913      <setenv 
        5914       name="DOMA IN_HOME" 
        5915       shorten="t rue"
        5916      >
        5917                                 
        5918       <value>
        5919        @USERDOMAI N_HOME
        5920       </value>
        5921                        
        5922      </setenv>
        5923                       
        5924      <setenv 
        5925       name="JAVA _OPTIONS" 
        5926       scope="glo bal" 
        5927       delim=" "
        5928      >
        5929                                 
        5930       <value>
        5931        %JAVA_OPTI ONS%
        5932       </value>
        5933                                 
        5934       <value>
        5935        -Dweblogic .RootDirec tory=%DOMA IN_HOME% 
        5936       </value>
        5937                        
        5938      </setenv>
        5939                       
        5940      <marker 
        5941       name="sect ion_marker _2" 
        5942       type="bloc kinsert" 
        5943       action="ap pend"
        5944      />
        5945                       
        5946      <comment 
        5947       message="  Call insta ll node ma nager serv ice"
        5948      />
        5949                       
        5950      <exec 
        5951       name="inst allNodeMgr Svc" 
        5952       type="scri pt"
        5953      >
        5954                                 
        5955       <cmd 
        5956        start="%WL _HOME%\ser ver\bin\in stallNodeM grSvc" 
        5957        min="false "
        5958       />
        5959                        
        5960      </exec>
        5961              
        5962     </script>
        5963             
        5964     <script 
        5965      name="unin stallNodeM grSvc" 
        5966      version="3
        5967      path="bin"  
        5968      overwrite= "false" 
        5969      unixFileSe p="${CLASS PATHSEP}" 
        5970      unixGenDis able="true "
        5971     >
        5972                       
        5973      <comment>
        5974                                 
        5975       <value>
        5976        ********** ********** ********** ********** ********** ********** ********** ***
        5977       </value>
        5978                                 
        5979       <value>
        5980         This scri pt is used  to uninst all a Node Manager Wi ndows Serv ice.
        5981       </value>
        5982                                 
        5983       <value>
        5984         This scri pt should  be used on ly when no de manager  is config ured per d omain.
        5985       </value>
        5986                                 
        5987       <value>
        5988         This scri pt sets th e followin g variable s before i nstalling 
        5989       </value>
        5990                                 
        5991       <value>
        5992         the Windo ws Service :
        5993       </value>
        5994                                 
        5995       <value>
        5996       </value>
        5997                                 
        5998       <value>
        5999         WL_HOME     - The ro ot directo ry of your  WebLogic  installati on
        6000       </value>
        6001                                 
        6002       <value>
        6003         PROD_NAME   - The pr oduct name . Here it  will produ ct name an d domain n ame
        6004       </value>
        6005                                 
        6006       <value>
        6007         ********* ********** ********** ********** ********** ********** ********** ****
        6008       </value>
        6009                        
        6010      </comment>
        6011                       
        6012      <marker 
        6013       name="sect ion_marker _1" 
        6014       type="bloc kinsert" 
        6015       action="ap pend"
        6016      />
        6017                       
        6018      <setenv 
        6019       name="WL_H OME" 
        6020       shorten="t rue"
        6021      >
        6022                                 
        6023       <value>
        6024        @WL_HOME
        6025       </value>
        6026                        
        6027      </setenv>
        6028                       
        6029      <setenv 
        6030       name="PROD _NAME" 
        6031       scope="glo bal"
        6032      >
        6033                                 
        6034       <value>
        6035        @PROD_NAME
        6036       </value>
        6037                        
        6038      </setenv>
        6039                       
        6040      <marker 
        6041       name="sect ion_marker _2" 
        6042       type="bloc kinsert" 
        6043       action="ap pend"
        6044      />
        6045                       
        6046      <comment 
        6047       message="  Call unins tall node  manager se rvice"
        6048      />
        6049                       
        6050      <exec 
        6051       name="unin stallNodeM grSvc" 
        6052       type="scri pt"
        6053      >
        6054                                 
        6055       <cmd 
        6056        start="%WL _HOME%\ser ver\bin\un installNod eMgrSvc" 
        6057        min="false "
        6058       />
        6059                        
        6060      </exec>
        6061              
        6062     </script>
        6063             
        6064     <script 
        6065      name="star tNodeManag er" 
        6066      version="3
        6067      path="bin"  
        6068      overwrite= "false" 
        6069      unixFileSe p="${CLASS PATHSEP}"
        6070     >
        6071                       
        6072      <comment>
        6073                                 
        6074       <value>
        6075        ********** ********** ********** ********** ********** ********** ********** ***
        6076       </value>
        6077                                 
        6078       <value>
        6079         This scri pt is used  to start  a NodeMana ger.
        6080       </value>
        6081                                 
        6082       <value>
        6083         This scri pt should  be used on ly when no de manager  is config ured per d omain.
        6084       </value>
        6085                                 
        6086       <value>
        6087         This scri pt sets th e followin g variable s before s tarting 
        6088       </value>
        6089                                 
        6090       <value>
        6091         the node  manager:
        6092       </value>
        6093                                 
        6094       <value>
        6095       </value>
        6096                                 
        6097       <value>
        6098         WL_HOME     - The ro ot directo ry of your  WebLogic  installati on
        6099       </value>
        6100                                 
        6101       <value>
        6102         NODEMGR_H OME  - The  product n ame. Here  it will pr oduct name  and domai n name
        6103       </value>
        6104                                 
        6105       <value>
        6106         ********* ********** ********** ********** ********** ********** ********** ****
        6107       </value>
        6108                        
        6109      </comment>
        6110                       
        6111      <marker 
        6112       name="sect ion_marker _1" 
        6113       type="bloc kinsert" 
        6114       action="ap pend"
        6115      />
        6116                       
        6117      <setenv 
        6118       name="WL_H OME" 
        6119       shorten="t rue"
        6120      >
        6121                                 
        6122       <value>
        6123        @WL_HOME
        6124       </value>
        6125                        
        6126      </setenv>
        6127                       
        6128      <setenv 
        6129       name="NODE MGR_HOME" 
        6130       shorten="t rue" 
        6131       scope="glo bal"
        6132      >
        6133                                 
        6134       <value>
        6135        @NODEMGR_H OME
        6136       </value>
        6137                        
        6138      </setenv>
        6139                       
        6140      <setenv 
        6141       name="DOMA IN_HOME" 
        6142       shorten="t rue"
        6143      >
        6144                                 
        6145       <value>
        6146        @USERDOMAI N_HOME
        6147       </value>
        6148                        
        6149      </setenv>
        6150                       
        6151      <setenv 
        6152       name="JAVA _OPTIONS" 
        6153       scope="glo bal" 
        6154       delim=" "
        6155      >
        6156                                 
        6157       <value>
        6158        %JAVA_OPTI ONS%
        6159       </value>
        6160                                 
        6161       <value>
        6162        -Dweblogic .RootDirec tory=%DOMA IN_HOME% 
        6163       </value>
        6164                        
        6165      </setenv>
        6166                       
        6167      <marker 
        6168       name="sect ion_marker _2" 
        6169       type="bloc kinsert" 
        6170       action="ap pend"
        6171      />
        6172                       
        6173      <marker 
        6174       name="sect ion_marker _3" 
        6175       type="bloc kinsert" 
        6176       action="ap pend"
        6177      />
        6178                       
        6179      <marker 
        6180       name="sect ion_marker _4" 
        6181       type="bloc kinsert" 
        6182       action="ap pend"
        6183      />
        6184                       
        6185      <marker 
        6186       name="sect ion_marker _5" 
        6187       type="bloc kinsert" 
        6188       action="ap pend"
        6189      />
        6190                       
        6191      <comment 
        6192       message="  start node  manager"
        6193      />
        6194                       
        6195      <exec 
        6196       name="star tNodeManag er" 
        6197       type="scri pt"
        6198      >
        6199                                 
        6200       <cmd 
        6201        start="%WL _HOME%\ser ver\bin\st artNodeMan ager" 
        6202        min="false "
        6203       />
        6204                        
        6205      </exec>
        6206              
        6207     </script>
        6208             
        6209     <script 
        6210      name="stop NodeManage r" 
        6211      version="3
        6212      path="bin"  
        6213      overwrite= "false" 
        6214      unixFileSe p="${CLASS PATHSEP}"
        6215     >
        6216                       
        6217      <comment>
        6218                                 
        6219       <value>
        6220        ********** ********** ********** ********** ********** ********** ********** ***
        6221       </value>
        6222                                 
        6223       <value>
        6224         This scri pt is used  to stop t he NodeMan ager for t his domain .
        6225       </value>
        6226                                 
        6227       <value>
        6228         This scri pt should  be used on ly when no de manager  is config ured per d omain.
        6229       </value>
        6230                                 
        6231       <value>
        6232         This scri pt sets th e followin g variable s before s topping 
        6233       </value>
        6234                                 
        6235       <value>
        6236         the node  manager:
        6237       </value>
        6238                                 
        6239       <value>
        6240       </value>
        6241                                 
        6242       <value>
        6243         WL_HOME     - The ro ot directo ry of your  WebLogic  installati on
        6244       </value>
        6245                                 
        6246       <value>
        6247         NODEMGR_H OME  - The  product n ame. Here  it will pr oduct name  and domai n name
        6248       </value>
        6249                                 
        6250       <value>
        6251         ********* ********** ********** ********** ********** ********** ********** ****
        6252       </value>
        6253                        
        6254      </comment>
        6255                       
        6256      <marker 
        6257       name="sect ion_marker _1" 
        6258       type="bloc kinsert" 
        6259       action="ap pend"
        6260      />
        6261                       
        6262      <setenv 
        6263       name="WL_H OME" 
        6264       shorten="t rue"
        6265      >
        6266                                 
        6267       <value>
        6268        @WL_HOME
        6269       </value>
        6270                        
        6271      </setenv>
        6272                       
        6273      <setenv 
        6274       name="NODE MGR_HOME" 
        6275       shorten="t rue" 
        6276       scope="glo bal"
        6277      >
        6278                                 
        6279       <value>
        6280        @NODEMGR_H OME
        6281       </value>
        6282                        
        6283      </setenv>
        6284                       
        6285      <setenv 
        6286       name="DOMA IN_HOME" 
        6287       shorten="t rue"
        6288      >
        6289                                 
        6290       <value>
        6291        @USERDOMAI N_HOME
        6292       </value>
        6293                        
        6294      </setenv>
        6295                       
        6296      <setenv 
        6297       name="ROOT _DIRECTORY
        6298       shorten="t rue" 
        6299       scope="glo bal"
        6300      >
        6301                                 
        6302       <value>
        6303        @USERDOMAI N_HOME
        6304       </value>
        6305                        
        6306      </setenv>
        6307                       
        6308      <marker 
        6309       name="sect ion_marker _2" 
        6310       type="bloc kinsert" 
        6311       action="ap pend"
        6312      />
        6313                       
        6314      <marker 
        6315       name="sect ion_marker _3" 
        6316       type="bloc kinsert" 
        6317       action="ap pend"
        6318      />
        6319                       
        6320      <marker 
        6321       name="sect ion_marker _4" 
        6322       type="bloc kinsert" 
        6323       action="ap pend"
        6324      />
        6325                       
        6326      <marker 
        6327       name="sect ion_marker _5" 
        6328       type="bloc kinsert" 
        6329       action="ap pend"
        6330      />
        6331                       
        6332      <comment 
        6333       message="  stop node  manager"
        6334      />
        6335                       
        6336      <exec 
        6337       name="stop NodeManage r" 
        6338       type="scri pt"
        6339      >
        6340                                 
        6341       <cmd 
        6342        start="%WL _HOME%\ser ver\bin\st opNodeMana ger" 
        6343        min="false "
        6344       />
        6345                        
        6346      </exec>
        6347              
        6348     </script>
        6349             
        6350     <script 
        6351      name="star tRSDaemon"  
        6352      version="1
        6353      path="bin"  
        6354      overwrite= "false" 
        6355      unixFileSe p="${CLASS PATHSEP}"
        6356     >
        6357                       
        6358      <comment>
        6359                                 
        6360       <value>
        6361        ********** ********** ********** ********** ********** ********** ********** ***
        6362       </value>
        6363                                 
        6364       <value>
        6365         This scri pt starts  a Replicat ed Store D aemon.
        6366       </value>
        6367                                 
        6368       <value>
        6369         It should  only be u sed when a  Replicate d Store is  configure d in a dom ain.
        6370       </value>
        6371                                 
        6372       <value>
        6373         This scri pt sets th e followin g variable s before s tarting 
        6374       </value>
        6375                                 
        6376       <value>
        6377         a Daemon:
        6378       </value>
        6379                                 
        6380       <value>
        6381       </value>
        6382                                 
        6383       <value>
        6384         WL_HOME     - The ro ot directo ry of your  WebLogic  installati on
        6385       </value>
        6386                                 
        6387       <value>
        6388         ********* ********** ********** ********** ********** ********** ********** ****
        6389       </value>
        6390                        
        6391      </comment>
        6392                       
        6393      <marker 
        6394       name="sect ion_marker _1" 
        6395       type="bloc kinsert" 
        6396       action="ap pend"
        6397      />
        6398                       
        6399      <setenv 
        6400       name="WL_H OME" 
        6401       shorten="t rue" 
        6402       scope="glo bal"
        6403      >
        6404                                 
        6405       <value>
        6406        @WL_HOME
        6407       </value>
        6408                        
        6409      </setenv>
        6410                       
        6411      <marker 
        6412       name="sect ion_marker _2" 
        6413       type="bloc kinsert" 
        6414       action="ap pend"
        6415      />
        6416                       
        6417      <marker 
        6418       name="sect ion_marker _3" 
        6419       type="bloc kinsert" 
        6420       action="ap pend"
        6421      />
        6422                       
        6423      <marker 
        6424       name="sect ion_marker _4" 
        6425       type="bloc kinsert" 
        6426       action="ap pend"
        6427      />
        6428                       
        6429      <marker 
        6430       name="sect ion_marker _5" 
        6431       type="bloc kinsert" 
        6432       action="ap pend"
        6433      />
        6434                       
        6435      <comment 
        6436       message="  start RSDa emon"
        6437      />
        6438                       
        6439      <exec 
        6440       name="star tRSDaemon"  
        6441       type="scri pt"
        6442      >
        6443                                 
        6444       <cmd 
        6445        start="%WL _HOME%\ser ver\bin\st artRSDaemo n" 
        6446        min="false "
        6447       />
        6448                                 
        6449       <params>
        6450                                           
        6451        <value>
        6452         $@
        6453        </value>
        6454                                  
        6455       </params>
        6456                        
        6457      </exec>
        6458              
        6459     </script>
        6460             
        6461     <script 
        6462      name="stop RSDaemon" 
        6463      version="1
        6464      path="bin"  
        6465      overwrite= "false" 
        6466      unixFileSe p="${CLASS PATHSEP}"
        6467     >
        6468                       
        6469      <comment>
        6470                                 
        6471       <value>
        6472        ********** ********** ********** ********** ********** ********** ********** ***
        6473       </value>
        6474                                 
        6475       <value>
        6476         This scri pt is used  to stop a  Replicate d Store Da emon.
        6477       </value>
        6478                                 
        6479       <value>
        6480         This scri pt should  be used on ly when a  Replicated  Store is  configured  for a dom ain.
        6481       </value>
        6482                                 
        6483       <value>
        6484         If JAVA_H OME is not  set, setD omainEnv i s called t o initiali ze JAVA_HO ME and oth er variabl es (see se tDomainEnv .sh).
        6485       </value>
        6486                                 
        6487       <value>
        6488         ********* ********** ********** ********** ********** ********** ********** ****
        6489       </value>
        6490                        
        6491      </comment>
        6492                       
        6493      <marker 
        6494       name="sect ion_marker _1" 
        6495       type="bloc kinsert" 
        6496       action="ap pend"
        6497      />
        6498                       
        6499      <setenv 
        6500       name="WL_H OME" 
        6501       shorten="t rue" 
        6502       scope="glo bal"
        6503      >
        6504                                 
        6505       <value>
        6506        @WL_HOME
        6507       </value>
        6508                        
        6509      </setenv>
        6510                       
        6511      <marker 
        6512       name="sect ion_marker _2" 
        6513       type="bloc kinsert" 
        6514       action="ap pend"
        6515      />
        6516                       
        6517      <setenv 
        6518       name="DOMA IN_HOME" 
        6519       shorten="t rue" 
        6520       scope="glo bal"
        6521      >
        6522                                 
        6523       <value>
        6524        @USERDOMAI N_HOME
        6525       </value>
        6526                        
        6527      </setenv>
        6528                       
        6529      <marker 
        6530       name="sect ion_marker _3" 
        6531       type="bloc kinsert" 
        6532       action="ap pend"
        6533      />
        6534                       
        6535      <marker 
        6536       name="sect ion_marker _4" 
        6537       type="bloc kinsert" 
        6538       action="ap pend"
        6539      />
        6540                       
        6541      <marker 
        6542       name="sect ion_marker _5" 
        6543       type="bloc kinsert" 
        6544       action="ap pend"
        6545      />
        6546                       
        6547      <comment 
        6548       message="  stop RSDae mon, this  will call  setDomainE nv first i f JAVA_HOM E is not s et"
        6549      />
        6550                       
        6551      <exec 
        6552       name="stop RSDaemon" 
        6553       type="scri pt"
        6554      >
        6555                                 
        6556       <cmd 
        6557        start="%WL _HOME%\ser ver\bin\st opRSDaemon
        6558        min="false "
        6559       />
        6560                                 
        6561       <params>
        6562                                           
        6563        <value>
        6564         $@
        6565        </value>
        6566                                  
        6567       </params>
        6568                        
        6569      </exec>
        6570              
        6571     </script>
        6572             
        6573     <script 
        6574      name="star tComponent
        6575      version="3
        6576      path="bin"  
        6577      overwrite= "false" 
        6578      unixFileSe p="${CLASS PATHSEP}"
        6579     >
        6580                       
        6581      <function 
        6582       name="usag e"
        6583      >
        6584                                 
        6585       <echo 
        6586        message="U sage: %1 { help} COMP ONENT_NAME  {storeUse rConfig} { showErrorS tack}"
        6587       />
        6588                                 
        6589       <echo 
        6590        message="W here:"
        6591       />
        6592                                 
        6593       <echo 
        6594        message="   help             - O ptional. S how this u sage."
        6595       />
        6596                                 
        6597       <echo 
        6598        message="   COMPONENT _NAME  - R equired. S ystem Comp onent name , only one  name allo wed"
        6599       />
        6600                                 
        6601       <echo 
        6602        message="   storeUser Config - O ptional. I f provided , save the  user conf ig into a  file if th e file doe s not exis t. "
        6603       />
        6604                                 
        6605       <echo 
        6606        message="   showError Stack  - O ptional. S how error  stack if p rovided."
        6607       />
        6608                        
        6609      </function >
        6610                       
        6611      <marker 
        6612       name="sect ion_marker _1" 
        6613       type="bloc kinsert" 
        6614       action="ap pend"
        6615      />
        6616                       
        6617      <marker 
        6618       name="sect ion_marker _2" 
        6619       type="bloc kinsert" 
        6620       action="ap pend"
        6621      />
        6622                       
        6623      <blockinse rt 
        6624       name="pars ing_argume nts_unix" 
        6625       os="unix"
        6626      >
        6627                                 
        6628       <if>
        6629                                           
        6630        <test 
        6631         type="stri ng"
        6632        >
        6633                                                    
        6634         <operand 
        6635          value="%1"
        6636         />
        6637                                                    
        6638         <operand 
        6639          value=""
        6640         />
        6641                                            
        6642        </test>
        6643                                           
        6644        <then>
        6645                                                    
        6646         <call 
        6647          name="usag e" 
        6648          args="%0"
        6649         />
        6650                                                    
        6651         <exit/>
        6652                                            
        6653        </then>
        6654                                  
        6655       </if>
        6656                                 
        6657       <setenv 
        6658        name="para m" 
        6659        shorten="t rue"
        6660       >
        6661                                           
        6662        <value>
        6663         $(echo %1  | tr -s &# 039;&#039; )
        6664        </value>
        6665                                  
        6666       </setenv>
        6667                                 
        6668       <if>
        6669                                           
        6670        <test 
        6671         type="stri ng"
        6672        >
        6673                                                    
        6674         <operand 
        6675          value="%pa ram%"
        6676         />
        6677                                                    
        6678         <operand 
        6679          value=""
        6680         />
        6681                                            
        6682        </test>
        6683                                           
        6684        <then>
        6685                                                    
        6686         <call 
        6687          name="usag e" 
        6688          args="%0"
        6689         />
        6690                                                    
        6691         <exit/>
        6692                                            
        6693        </then>
        6694                                  
        6695       </if>
        6696                        
        6697      </blockins ert>
        6698                       
        6699      <blockinse rt 
        6700       name="pars ing_argume nts_win" 
        6701       os="win"
        6702      >
        6703                                 
        6704       <if>
        6705                                           
        6706        <test 
        6707         type="stri ng"
        6708        >
        6709                                                    
        6710         <operand 
        6711          value="%~1
        6712          preserve=" true"
        6713         />
        6714                                                    
        6715         <operand 
        6716          value="" 
        6717          preserve=" true"
        6718         />
        6719                                            
        6720        </test>
        6721                                           
        6722        <then>
        6723                                                    
        6724         <call 
        6725          name="usag e" 
        6726          args="%0"
        6727         />
        6728                                                    
        6729         <exit/>
        6730                                            
        6731        </then>
        6732                                  
        6733       </if>
        6734                                 
        6735       <comment 
        6736        message="W hen the pa rameter co ntains whi te spaces  only, like  &#039;    &#039;, er ror out."
        6737       />
        6738                                 
        6739       <setenv 
        6740        name="para m" 
        6741        shorten="t rue"
        6742       >
        6743                                           
        6744        <value>
        6745         %1
        6746        </value>
        6747                                  
        6748       </setenv>
        6749                                 
        6750       <if>
        6751                                           
        6752        <test 
        6753         type="stri ng"
        6754        >
        6755                                                    
        6756         <operand 
        6757          value="%pa ram%."
        6758         />
        6759                                                    
        6760         <operand 
        6761          value="."
        6762         />
        6763                                            
        6764        </test>
        6765                                           
        6766        <then>
        6767                                                    
        6768         <echo 
        6769          message="E rror: Inva lid System  Component  name: %1"
        6770         />
        6771                                                    
        6772         <call 
        6773          name="usag e" 
        6774          args="%0"
        6775         />
        6776                                                    
        6777         <exit/>
        6778                                            
        6779        </then>
        6780                                  
        6781       </if>
        6782                        
        6783      </blockins ert>
        6784                       
        6785      <if>
        6786                                 
        6787       <test 
        6788        type="stri ng"
        6789       >
        6790                                           
        6791        <operand 
        6792         value="%1"
        6793        />
        6794                                           
        6795        <operand 
        6796         value="sto reUserConf ig"
        6797        />
        6798                                  
        6799       </test>
        6800                                 
        6801       <then>
        6802                                           
        6803        <call 
        6804         name="usag e" 
        6805         args="%0"
        6806        />
        6807                                           
        6808        <exit/>
        6809                                  
        6810       </then>
        6811                        
        6812      </if>
        6813                       
        6814      <if>
        6815                                 
        6816       <test 
        6817        type="stri ng"
        6818       >
        6819                                           
        6820        <operand 
        6821         value="%1"
        6822        />
        6823                                           
        6824        <operand 
        6825         value="sho wErrorStac k"
        6826        />
        6827                                  
        6828       </test>
        6829                                 
        6830       <then>
        6831                                           
        6832        <call 
        6833         name="usag e" 
        6834         args="%0"
        6835        />
        6836                                           
        6837        <exit/>
        6838                                  
        6839       </then>
        6840                        
        6841      </if>
        6842                       
        6843      <parseargs >
        6844                                 
        6845       <arg 
        6846        name="stor eUserConfi g" 
        6847        switch="st oreUserCon fig" 
        6848        default="f alse"
        6849       >
        6850                                           
        6851        <setenv 
        6852         name="stor eUserConfi g" 
        6853         scope="glo bal"
        6854        >
        6855                                                    
        6856         <value>
        6857          true
        6858         </value>
        6859                                            
        6860        </setenv>
        6861                                  
        6862       </arg>
        6863                                 
        6864       <arg 
        6865        name="show ErrorStack
        6866        switch="sh owErrorSta ck" 
        6867        default="f alse"
        6868       >
        6869                                           
        6870        <setenv 
        6871         name="show ErrorStack
        6872         scope="glo bal"
        6873        >
        6874                                                    
        6875         <value>
        6876          true
        6877         </value>
        6878                                            
        6879        </setenv>
        6880                                  
        6881       </arg>
        6882                                 
        6883       <arg 
        6884        name="doUs age" 
        6885        switch="he lp" 
        6886        default="f alse"
        6887       >
        6888                                           
        6889        <setenv 
        6890         name="doUs age"
        6891        >
        6892                                                    
        6893         <value>
        6894          true
        6895         </value>
        6896                                            
        6897        </setenv>
        6898                                  
        6899       </arg>
        6900                                 
        6901       <arg 
        6902        name="*" 
        6903        switch="*"
        6904       >
        6905                                           
        6906        <if>
        6907                                                    
        6908         <test 
        6909          type="stri ng" 
        6910          not="true"
        6911         >
        6912                                                              
        6913          <operand 
        6914           value="%co mponentNam e%"
        6915          />
        6916                                                              
        6917          <operand 
        6918           value=""
        6919          />
        6920                                                     
        6921         </test>
        6922                                                    
        6923         <then>
        6924                                                              
        6925          <call 
        6926           name="usag e" 
        6927           args="%0"
        6928          />
        6929                                                              
        6930          <exit/>
        6931                                                     
        6932         </then>
        6933                                            
        6934        </if>
        6935                                           
        6936        <setenv 
        6937         name="comp onentName"  
        6938         scope="glo bal"
        6939        >
        6940                                                    
        6941         <value>
        6942          %1
        6943         </value>
        6944                                            
        6945        </setenv>
        6946                                  
        6947       </arg>
        6948                        
        6949      </parsearg s>
        6950                       
        6951      <if>
        6952                                 
        6953       <test 
        6954        type="stri ng"
        6955       >
        6956                                           
        6957        <operand 
        6958         value="%do Usage%"
        6959        />
        6960                                           
        6961        <operand 
        6962         value="tru e"
        6963        />
        6964                                  
        6965       </test>
        6966                                 
        6967       <then>
        6968                                           
        6969        <call 
        6970         name="usag e" 
        6971         args="%0"
        6972        />
        6973                                           
        6974        <exit/>
        6975                                  
        6976       </then>
        6977                        
        6978      </if>
        6979                       
        6980      <marker 
        6981       name="sect ion_marker _5" 
        6982       type="bloc kinsert" 
        6983       action="ap pend"
        6984      />
        6985                       
        6986      <setenv 
        6987       name="WL_H OME" 
        6988       shorten="t rue"
        6989      >
        6990                                 
        6991       <value>
        6992        @WL_HOME
        6993       </value>
        6994                        
        6995      </setenv>
        6996                       
        6997      <setenv 
        6998       name="DOMA IN_HOME"
        6999      >
        7000                                 
        7001       <value 
        7002        preserve=" true"
        7003       >
        7004        @USERDOMAI N_HOME
        7005       </value>
        7006                        
        7007      </setenv>
        7008                       
        7009      <blockinse rt 
        7010       name="crea te_tmpfile _win" 
        7011       os="win"
        7012      >
        7013                                 
        7014       <setenv 
        7015        name="PY_L OC" 
        7016        shorten="t rue"
        7017       >
        7018                                           
        7019        <value>
        7020         %TEMP%.\st artCompone nt.py
        7021        </value>
        7022                                  
        7023       </setenv>
        7024                        
        7025      </blockins ert>
        7026                       
        7027      <blockinse rt 
        7028       name="crea te_tmpfile _unix" 
        7029       os="unix"
        7030      >
        7031                                 
        7032       <if>
        7033                                           
        7034        <test 
        7035         type="stri ng" 
        7036         not="true"
        7037        >
        7038                                                    
        7039         <operand 
        7040          value="%TM PDIR%"
        7041         />
        7042                                                    
        7043         <operand 
        7044          value=""
        7045         />
        7046                                            
        7047        </test>
        7048                                           
        7049        <then>
        7050                                                    
        7051         <setenv 
        7052          name="PY_L OC"
        7053         >
        7054                                                              
        7055          <value>
        7056           %TMPDIR%\s tartCompon ent.py
        7057          </value>
        7058                                                     
        7059         </setenv>
        7060                                            
        7061        </then>
        7062                                           
        7063        <else>
        7064                                                    
        7065         <setenv 
        7066          name="PY_L OC"
        7067         >
        7068                                                              
        7069          <value>
        7070           \tmp\start Component. py
        7071          </value>
        7072                                                     
        7073         </setenv>
        7074                                            
        7075        </else>
        7076                                  
        7077       </if>
        7078                        
        7079      </blockins ert>
        7080                       
        7081      <blockinse rt 
        7082       name="umas k_section"  
        7083       os="unix"
        7084      >
        7085                                 
        7086       <exec 
        7087        name="umas k" 
        7088        type="prog ram"
        7089       >
        7090                                           
        7091        <cmd 
        7092         start="uma sk 027" 
        7093         min="false "
        7094        />
        7095                                  
        7096       </exec>
        7097                        
        7098      </blockins ert>
        7099                       
        7100      <marker 
        7101       name="sect ion_marker _6" 
        7102       type="bloc kinsert" 
        7103       action="ap pend"
        7104      />
        7105                       
        7106      <if>
        7107                                 
        7108       <test 
        7109        type="stri ng"
        7110       >
        7111                                           
        7112        <operand 
        7113         value="%sh owErrorSta ck%"
        7114        />
        7115                                           
        7116        <operand 
        7117         value="fal se"
        7118        />
        7119                                  
        7120       </test>
        7121                                 
        7122       <then>
        7123                                           
        7124        <echo>
        7125                                                    
        7126         <value>
        7127          try:
        7128         </value>
        7129                                                    
        7130         <value>
        7131            startCom ponentInte rnal(&#039 ;${compone ntName}&#0 39;, r&#03 9;${DOMAIN _HOME}&#03 9;, &#039; ${storeUse rConfig}&# 039;)
        7132         </value>
        7133                                                    
        7134         <value>
        7135            exit()
        7136         </value>
        7137                                                    
        7138         <value>
        7139          except Exc eption,e:
        7140         </value>
        7141                                                    
        7142         <value>
        7143            print &# 039;Error: &#039;, sy s.exc_info ()[1]
        7144         </value>
        7145                                                    
        7146         <value>
        7147            exit()
        7148         </value>
        7149                                                    
        7150         <redirect 
        7151          file="${PY _LOC}"
        7152         />
        7153                                            
        7154        </echo>
        7155                                  
        7156       </then>
        7157                                 
        7158       <else>
        7159                                           
        7160        <echo>
        7161                                                    
        7162         <value>
        7163          startCompo nentIntern al(&#039;$ {component Name}&#039 ;, r&#039; ${DOMAIN_H OME}&#039; , &#039;${ storeUserC onfig}&#03 9;)
        7164         </value>
        7165                                                    
        7166         <value>
        7167          exit()
        7168         </value>
        7169                                                    
        7170         <redirect 
        7171          file="${PY _LOC}"
        7172         />
        7173                                            
        7174        </echo>
        7175                                  
        7176       </else>
        7177                        
        7178      </if>
        7179                       
        7180      <marker 
        7181       name="sect ion_marker _7" 
        7182       type="bloc kinsert" 
        7183       action="ap pend"
        7184      />
        7185                       
        7186      <echo 
        7187       message="S tarting sy stem Compo nent ${com ponentName } ..."
        7188      />
        7189                       
        7190      <comment 
        7191       message="S tart WLST. "
        7192      />
        7193                       
        7194      <exec 
        7195       name="Star ting WLST  ..." 
        7196       type="scri pt"
        7197      >
        7198                                 
        7199       <cmd 
        7200        start="%WL _HOME%\..\ oracle_com mon\common \bin\wlst"  
        7201        min="false "
        7202       />
        7203                                 
        7204       <params>
        7205                                           
        7206        <value>
        7207         -i
        7208        </value>
        7209                                  
        7210       </params>
        7211                                 
        7212       <params 
        7213        type="post "
        7214       >
        7215                                           
        7216        <value>
        7217         ${PY_LOC}
        7218        </value>
        7219                                  
        7220       </params>
        7221                                 
        7222       <redirect 
        7223        tostream=" 1" 
        7224        fromstream ="2"
        7225       />
        7226                        
        7227      </exec>
        7228                       
        7229      <marker 
        7230       name="sect ion_marker _8" 
        7231       type="bloc kinsert" 
        7232       action="ap pend"
        7233      />
        7234                       
        7235      <if>
        7236                                 
        7237       <test 
        7238        type="file "
        7239       >
        7240                                           
        7241        <operand 
        7242         value="${P Y_LOC}"
        7243        />
        7244                                  
        7245       </test>
        7246                                 
        7247       <then>
        7248                                           
        7249        <blockinse rt 
        7250         name="call _del_win" 
        7251         os="win"
        7252        >
        7253                                                    
        7254         <exec 
        7255          name="Dele ting the g enerated p y script.. ." 
        7256          type="prog ram"
        7257         >
        7258                                                              
        7259          <cmd 
        7260           start="del  ${PY_LOC}
        7261           min="false "
        7262          />
        7263                                                     
        7264         </exec>
        7265                                            
        7266        </blockins ert>
        7267                                           
        7268        <blockinse rt 
        7269         name="call _rm_unix" 
        7270         os="unix"
        7271        >
        7272                                                    
        7273         <exec 
        7274          name="Dele ting the g enerated p y script.. ." 
        7275          type="prog ram"
        7276         >
        7277                                                              
        7278          <cmd 
        7279           start="rm  -f ${PY_LO C}" 
        7280           min="false "
        7281          />
        7282                                                     
        7283         </exec>
        7284                                            
        7285        </blockins ert>
        7286                                  
        7287       </then>
        7288                        
        7289      </if>
        7290                       
        7291      <echo 
        7292       message="D one"
        7293      />
        7294                       
        7295      <exit/>
        7296              
        7297     </script>
        7298             
        7299     <script 
        7300      name="stop Component"  
        7301      version="3
        7302      path="bin"  
        7303      overwrite= "false" 
        7304      unixFileSe p="${CLASS PATHSEP}"
        7305     >
        7306                       
        7307      <function 
        7308       name="usag e"
        7309      >
        7310                                 
        7311       <echo 
        7312        message="U sage: %1 { help} COMP ONENT_NAME  {showErro rStack}"
        7313       />
        7314                                 
        7315       <echo 
        7316        message="W here:"
        7317       />
        7318                                 
        7319       <echo 
        7320        message="   help            - Op tional. Sh ow this us age."
        7321       />
        7322                                 
        7323       <echo 
        7324        message="   COMPONENT _NAME - Re quired. Sy stem Compo nent name,  only one  name allow ed"
        7325       />
        7326                                 
        7327       <echo 
        7328        message="   showError Stack - Op tional. Sh ow error s tack if pr ovided."
        7329       />
        7330                        
        7331      </function >
        7332                       
        7333      <marker 
        7334       name="sect ion_marker _1" 
        7335       type="bloc kinsert" 
        7336       action="ap pend"
        7337      />
        7338                       
        7339      <marker 
        7340       name="sect ion_marker _2" 
        7341       type="bloc kinsert" 
        7342       action="ap pend"
        7343      />
        7344                       
        7345      <blockinse rt 
        7346       name="pars ing_argume nts_unix" 
        7347       os="unix"
        7348      >
        7349                                 
        7350       <if>
        7351                                           
        7352        <test 
        7353         type="stri ng"
        7354        >
        7355                                                    
        7356         <operand 
        7357          value="%1"
        7358         />
        7359                                                    
        7360         <operand 
        7361          value=""
        7362         />
        7363                                            
        7364        </test>
        7365                                           
        7366        <then>
        7367                                                    
        7368         <call 
        7369          name="usag e" 
        7370          args="%0"
        7371         />
        7372                                                    
        7373         <exit/>
        7374                                            
        7375        </then>
        7376                                  
        7377       </if>
        7378                                 
        7379       <setenv 
        7380        name="para m" 
        7381        shorten="t rue"
        7382       >
        7383                                           
        7384        <value>
        7385         $(echo %1  | tr -s &# 039;&#039; )
        7386        </value>
        7387                                  
        7388       </setenv>
        7389                                 
        7390       <if>
        7391                                           
        7392        <test 
        7393         type="stri ng"
        7394        >
        7395                                                    
        7396         <operand 
        7397          value="%pa ram%"
        7398         />
        7399                                                    
        7400         <operand 
        7401          value=""
        7402         />
        7403                                            
        7404        </test>
        7405                                           
        7406        <then>
        7407                                                    
        7408         <call 
        7409          name="usag e" 
        7410          args="%0"
        7411         />
        7412                                                    
        7413         <exit/>
        7414                                            
        7415        </then>
        7416                                  
        7417       </if>
        7418                        
        7419      </blockins ert>
        7420                       
        7421      <blockinse rt 
        7422       name="pars ing_argume nts_win" 
        7423       os="win"
        7424      >
        7425                                 
        7426       <if>
        7427                                           
        7428        <test 
        7429         type="stri ng"
        7430        >
        7431                                                    
        7432         <operand 
        7433          value="%~1
        7434          preserve=" true"
        7435         />
        7436                                                    
        7437         <operand 
        7438          value="" 
        7439          preserve=" true"
        7440         />
        7441                                            
        7442        </test>
        7443                                           
        7444        <then>
        7445                                                    
        7446         <call 
        7447          name="usag e" 
        7448          args="%0"
        7449         />
        7450                                                    
        7451         <exit/>
        7452                                            
        7453        </then>
        7454                                  
        7455       </if>
        7456                                 
        7457       <comment 
        7458        message="W hen the pa rameter co ntains whi te spaces  only, like  &#039;    &#039;, er ror out."
        7459       />
        7460                                 
        7461       <setenv 
        7462        name="para m" 
        7463        shorten="t rue"
        7464       >
        7465                                           
        7466        <value>
        7467         %1
        7468        </value>
        7469                                  
        7470       </setenv>
        7471                                 
        7472       <if>
        7473                                           
        7474        <test 
        7475         type="stri ng"
        7476        >
        7477                                                    
        7478         <operand 
        7479          value="%pa ram%."
        7480         />
        7481                                                    
        7482         <operand 
        7483          value="."
        7484         />
        7485                                            
        7486        </test>
        7487                                           
        7488        <then>
        7489                                                    
        7490         <echo 
        7491          message="E rror: Inva lid System  Component  name: %1"
        7492         />
        7493                                                    
        7494         <call 
        7495          name="usag e" 
        7496          args="%0"
        7497         />
        7498                                                    
        7499         <exit/>
        7500                                            
        7501        </then>
        7502                                  
        7503       </if>
        7504                        
        7505      </blockins ert>
        7506                       
        7507      <if>
        7508                                 
        7509       <test 
        7510        type="stri ng"
        7511       >
        7512                                           
        7513        <operand 
        7514         value="%1"
        7515        />
        7516                                           
        7517        <operand 
        7518         value="sho wErrorStac k"
        7519        />
        7520                                  
        7521       </test>
        7522                                 
        7523       <then>
        7524                                           
        7525        <call 
        7526         name="usag e" 
        7527         args="%0"
        7528        />
        7529                                           
        7530        <exit/>
        7531                                  
        7532       </then>
        7533                        
        7534      </if>
        7535                       
        7536      <parseargs >
        7537                                 
        7538       <arg 
        7539        name="show ErrorStack
        7540        switch="sh owErrorSta ck" 
        7541        default="f alse"
        7542       >
        7543                                           
        7544        <setenv 
        7545         name="show ErrorStack
        7546         scope="glo bal"
        7547        >
        7548                                                    
        7549         <value>
        7550          true
        7551         </value>
        7552                                            
        7553        </setenv>
        7554                                  
        7555       </arg>
        7556                                 
        7557       <arg 
        7558        name="doUs age" 
        7559        switch="he lp" 
        7560        default="f alse"
        7561       >
        7562                                           
        7563        <setenv 
        7564         name="doUs age"
        7565        >
        7566                                                    
        7567         <value>
        7568          true
        7569         </value>
        7570                                            
        7571        </setenv>
        7572                                  
        7573       </arg>
        7574                                 
        7575       <arg 
        7576        name="*" 
        7577        switch="*"
        7578       >
        7579                                           
        7580        <if>
        7581                                                    
        7582         <test 
        7583          type="stri ng" 
        7584          not="true"
        7585         >
        7586                                                              
        7587          <operand 
        7588           value="%co mponentNam e%"
        7589          />
        7590                                                              
        7591          <operand 
        7592           value=""
        7593          />
        7594                                                     
        7595         </test>
        7596                                                    
        7597         <then>
        7598                                                              
        7599          <call 
        7600           name="usag e" 
        7601           args="%0"
        7602          />
        7603                                                              
        7604          <exit/>
        7605                                                     
        7606         </then>
        7607                                            
        7608        </if>
        7609                                           
        7610        <setenv 
        7611         name="comp onentName"  
        7612         scope="glo bal"
        7613        >
        7614                                                    
        7615         <value>
        7616          %1
        7617         </value>
        7618                                            
        7619        </setenv>
        7620                                  
        7621       </arg>
        7622                        
        7623      </parsearg s>
        7624                       
        7625      <if>
        7626                                 
        7627       <test 
        7628        type="stri ng"
        7629       >
        7630                                           
        7631        <operand 
        7632         value="%do Usage%"
        7633        />
        7634                                           
        7635        <operand 
        7636         value="tru e"
        7637        />
        7638                                  
        7639       </test>
        7640                                 
        7641       <then>
        7642                                           
        7643        <call 
        7644         name="usag e" 
        7645         args="%0"
        7646        />
        7647                                           
        7648        <exit/>
        7649                                  
        7650       </then>
        7651                        
        7652      </if>
        7653                       
        7654      <marker 
        7655       name="sect ion_marker _4" 
        7656       type="bloc kinsert" 
        7657       action="ap pend"
        7658      />
        7659                       
        7660      <setenv 
        7661       name="WL_H OME" 
        7662       shorten="t rue"
        7663      >
        7664                                 
        7665       <value>
        7666        @WL_HOME
        7667       </value>
        7668                        
        7669      </setenv>
        7670                       
        7671      <setenv 
        7672       name="DOMA IN_HOME"
        7673      >
        7674                                 
        7675       <value 
        7676        preserve=" true"
        7677       >
        7678        @USERDOMAI N_HOME
        7679       </value>
        7680                        
        7681      </setenv>
        7682                       
        7683      <blockinse rt 
        7684       name="crea te_tmpfile _win" 
        7685       os="win"
        7686      >
        7687                                 
        7688       <setenv 
        7689        name="PY_L OC" 
        7690        shorten="t rue"
        7691       >
        7692                                           
        7693        <value>
        7694         %TEMP%.\st opComponen t.py
        7695        </value>
        7696                                  
        7697       </setenv>
        7698                        
        7699      </blockins ert>
        7700                       
        7701      <blockinse rt 
        7702       name="crea te_tmpfile _unix" 
        7703       os="unix"
        7704      >
        7705                                 
        7706       <if>
        7707                                           
        7708        <test 
        7709         type="stri ng" 
        7710         not="true"
        7711        >
        7712                                                    
        7713         <operand 
        7714          value="%TM PDIR%"
        7715         />
        7716                                                    
        7717         <operand 
        7718          value=""
        7719         />
        7720                                            
        7721        </test>
        7722                                           
        7723        <then>
        7724                                                    
        7725         <setenv 
        7726          name="PY_L OC"
        7727         >
        7728                                                              
        7729          <value>
        7730           %TMPDIR%\s topCompone nt.py
        7731          </value>
        7732                                                     
        7733         </setenv>
        7734                                            
        7735        </then>
        7736                                           
        7737        <else>
        7738                                                    
        7739         <setenv 
        7740          name="PY_L OC"
        7741         >
        7742                                                              
        7743          <value>
        7744           \tmp\stopC omponent.p y
        7745          </value>
        7746                                                     
        7747         </setenv>
        7748                                            
        7749        </else>
        7750                                  
        7751       </if>
        7752                        
        7753      </blockins ert>
        7754                       
        7755      <blockinse rt 
        7756       name="umas k_section"  
        7757       os="unix"
        7758      >
        7759                                 
        7760       <exec 
        7761        name="umas k" 
        7762        type="prog ram"
        7763       >
        7764                                           
        7765        <cmd 
        7766         start="uma sk 027" 
        7767         min="false "
        7768        />
        7769                                  
        7770       </exec>
        7771                        
        7772      </blockins ert>
        7773                       
        7774      <marker 
        7775       name="sect ion_marker _5" 
        7776       type="bloc kinsert" 
        7777       action="ap pend"
        7778      />
        7779                       
        7780      <if>
        7781                                 
        7782       <test 
        7783        type="stri ng"
        7784       >
        7785                                           
        7786        <operand 
        7787         value="%sh owErrorSta ck%"
        7788        />
        7789                                           
        7790        <operand 
        7791         value="fal se"
        7792        />
        7793                                  
        7794       </test>
        7795                                 
        7796       <then>
        7797                                           
        7798        <echo>
        7799                                                    
        7800         <value>
        7801          try:
        7802         </value>
        7803                                                    
        7804         <value>
        7805            stopComp onentInter nal(&#039; ${componen tName}&#03 9;, r&#039 ;${DOMAIN_ HOME}&#039 ;)
        7806         </value>
        7807                                                    
        7808         <value>
        7809            exit()
        7810         </value>
        7811                                                    
        7812         <value>
        7813          except Exc eption,e:
        7814         </value>
        7815                                                    
        7816         <value>
        7817            print &# 039;Error: &#039;, sy s.exc_info ()[1]
        7818         </value>
        7819                                                    
        7820         <value>
        7821            exit()
        7822         </value>
        7823                                                    
        7824         <redirect 
        7825          file="${PY _LOC}"
        7826         />
        7827                                            
        7828        </echo>
        7829                                  
        7830       </then>
        7831                                 
        7832       <else>
        7833                                           
        7834        <echo>
        7835                                                    
        7836         <value>
        7837          stopCompon entInterna l(&#039;${ componentN ame}&#039; , r&#039;$ {DOMAIN_HO ME}&#039;)
        7838         </value>
        7839                                                    
        7840         <value>
        7841          exit()
        7842         </value>
        7843                                                    
        7844         <redirect 
        7845          file="${PY _LOC}"
        7846         />
        7847                                            
        7848        </echo>
        7849                                  
        7850       </else>
        7851                        
        7852      </if>
        7853                       
        7854      <marker 
        7855       name="sect ion_marker _6" 
        7856       type="bloc kinsert" 
        7857       action="ap pend"
        7858      />
        7859                       
        7860      <echo 
        7861       message="S topping Sy stem Compo nent ${com ponentName } ..."
        7862      />
        7863                       
        7864      <comment 
        7865       message="U sing WLST. .."
        7866      />
        7867                       
        7868      <exec 
        7869       name="Star ting wlst  ..." 
        7870       type="scri pt"
        7871      >
        7872                                 
        7873       <cmd 
        7874        start="%WL _HOME%\..\ oracle_com mon\common \bin\wlst"  
        7875        min="false "
        7876       />
        7877                                 
        7878       <params>
        7879                                           
        7880        <value>
        7881         -i
        7882        </value>
        7883                                  
        7884       </params>
        7885                                 
        7886       <params 
        7887        type="post "
        7888       >
        7889                                           
        7890        <value>
        7891         ${PY_LOC}
        7892        </value>
        7893                                  
        7894       </params>
        7895                                 
        7896       <redirect 
        7897        tostream=" 1" 
        7898        fromstream ="2"
        7899       />
        7900                        
        7901      </exec>
        7902                       
        7903      <marker 
        7904       name="sect ion_marker _7" 
        7905       type="bloc kinsert" 
        7906       action="ap pend"
        7907      />
        7908                       
        7909      <if>
        7910                                 
        7911       <test 
        7912        type="file "
        7913       >
        7914                                           
        7915        <operand 
        7916         value="${P Y_LOC}"
        7917        />
        7918                                  
        7919       </test>
        7920                                 
        7921       <then>
        7922                                           
        7923        <blockinse rt 
        7924         name="call _del_win" 
        7925         os="win"
        7926        >
        7927                                                    
        7928         <exec 
        7929          name="Dele ting the g enerated p y script.. ." 
        7930          type="prog ram"
        7931         >
        7932                                                              
        7933          <cmd 
        7934           start="del  ${PY_LOC}
        7935           min="false "
        7936          />
        7937                                                     
        7938         </exec>
        7939                                            
        7940        </blockins ert>
        7941                                           
        7942        <blockinse rt 
        7943         name="call _rm_unix" 
        7944         os="unix"
        7945        >
        7946                                                    
        7947         <exec 
        7948          name="Dele ting the g enerated p y script.. ." 
        7949          type="prog ram"
        7950         >
        7951                                                              
        7952          <cmd 
        7953           start="rm  -f ${PY_LO C}" 
        7954           min="false "
        7955          />
        7956                                                     
        7957         </exec>
        7958                                            
        7959        </blockins ert>
        7960                                  
        7961       </then>
        7962                        
        7963      </if>
        7964                       
        7965      <echo 
        7966       message="D one"
        7967      />
        7968                       
        7969      <exit/>
        7970              
        7971     </script>
        7972   </scripts>