2015-03-03 80 views
0

我目前使用的是odm 8.0.1.I有一个场景,我需要从Res.I中获取xom,但是获取了res-fetch的ruleapp但没有获得任何选项为xom。从RES获取xom odm 8.0.1

其实我的目标是将ruleapp从一台服务器部署到另一台服务器。如果有其他可能的方法,请让我知道。

在此先感谢。

回答

0

您可以将ruleapp归档直接部署到其他服务器的Rule Execution Server。登录后,转到“资源管理器”选项卡,然后单击“部署规则应用程序存档”。

+0

对不起,我错过了我需要使用ant脚本进行自动化的事实 – 2015-03-04 06:22:55

0

你可以只使用RES-JAR它检索了所有必要元素完全形成规则存档,然后使用资源部署将它部署到新的服务器。

ANT Commands for RES

0

我知道这个问题现在是一个几个月大,但可以蚂蚁,做你需要做的内工作的方法。它将使用fetch-all,但是您可以拉取所需的确切XOM。如果你需要更多的XOM,你可以添加更多的变量(例如TARGETXOM1,TARGETXOM2)。这被列为上8.7的z/OS的产品内的样品和一张白纸,我帮写入覆盖this

<target name="fetch-xom"> 
    <mkdir dir="${HBRWORKPATH}" /> 
     <res-fetch-all hostname="${FETCHHOSTNAME}" 
       destfile="${HBRWORKPATH}/${HBRFILE}"   
       portnumber="${FETCHPORT}" webapp="res" 
       userid="${FETCHUSERID}" password="${FETCHPASSWORD}"> 
     </res-fetch-all> 
    <unzip src="${HBRWORKPATH}/${HBRFILE}" dest="${HBRWORKPATH}"> 
     <patternset> 
       <include name="${TARGETXOM}_${XOMVERSION}.zip" /> 
     </patternset> </unzip> 
</target> 

<!-- Step Two: Get the ruleapp from the repository --> 
<target name="fetch-ruleapp"> 
    <res-fetch hostname="${FETCHHOSTNAME}" 
    destfile="${HBRWORKPATH}/${TARGETRULEAPP}.jar" 
          portnumber="${FETCHPORT}" 
         userid="${FETCHUSERID}"  
          password="${FETCHPASSWORD}" 
          ruleapp="${TARGETRULEAPP}" 
          version="${TARGETRULEAPPVERSION}" /> 
</target> 

<!-- Step Three: Deploy the ruleapp and XOM that was retrieved --> 
<target name="deploywithxom"> 
    <res-deploy hostname="${DEPLOYHOSTNAME}" portnumber="${DEPLOYPORT}" 
     webapp="${DEPLOYWEBAPP}" userid="${DEPLOYUSERID}" password="${DEPLOYPASSWORD}" file="${HBRWORKPATH}/${TARGETRULEAPP}.jar"> 
     <xompath rulesetpath="/${TARGETRULEAPP}/${TARGETRULESET}"> <fileset dir="${HBRWORKPATH}"> 
      <patternset> 
       <include name="${TARGETXOM}_${XOMVERSION}.zip" /> 
      </patternset> </fileset> 
     </xompath> </res-deploy> 
    <!--Deploy the XOM to the Target Rule Execution Server --> 
    <res-deploy-xom hostname="${DEPLOYHOSTNAME}" 
        portnumber="${DEPLOYPORT}" webapp="${DEPLOYWEBAPP}" 
        userid="${DEPLOYUSERID}" password="${DEPLOYPASSWORD}" 
        outputRulesetProperty="ruleset.managed.uris"> 
      <xompath> 
      <fileset dir="${HBRWORKPATH}"> 
       <patternset> 
        <include name="${TARGETXOM}_${XOMVERSION}.zip" /> 
       </patternset> </fileset> 
      </xompath> 
    </res-deploy-xom> 

让我知道,如果你有任何问题!