0

我目前正在使用 odm 8.0.1。我有一个场景,我需要从 Res 获取 xom。我已经使用 res-fetch 获取了 ruleapp,但没有获得 xom 的任何选项。

实际上,我的目标是将规则应用程序从一台服务器部署到另一台服务器。如果有其他可能的方法,请告诉我。

提前致谢。

4

3 回答 3

0

我知道这个问题现在已经有几个月的历史了,但是一种可以在 ant 中工作的方法可以完成你需要做的事情。它将使用 fetch-all,但您可以提取所需的确切 XOM。如果您需要更多 XOM,您可以向其中添加更多变量(例如 TARGETXOM1、TARGETXOM2)。这作为示例包含在 8.7 的 z/OS 产品中,我帮助编写的白皮书涵盖了这一点

<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>

如果您有任何问题,请告诉我!

于 2015-04-29T09:03:40.650 回答
0

您可以只使用res-jar检索包含所有必需元素的完整规则存档,然后使用res-deploy将其部署到您的新服务器。

用于 RES 的 ANT 命令

于 2015-04-11T22:31:22.813 回答
0

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

于 2015-03-04T00:36:03.287 回答