To deploy a RuleApp archive to a running Rule Execution Server instance and write RuleApps to a file system or database, you can use Ant tasks.
If the RuleApp is associated with a Java™ XOM, you can use the res-deploy-xom, res-write-xom-file, and res-write-xom-db Ant tasks in a similar way.
When you deploy a RuleApp with a merging policy at the ruleset level, the RuleApp that already exists in the Rule Execution Server is updated with the deployed RuleApp (description, display name, properties). If you update this RuleApp from the Rule Execution Server console, all modifications are lost at the next deployment that applies a merging policy at the ruleset level.
<res-deploy
hostname="localhost"
portnumber="9080"
userid="resAdmin"
password="mypassword"
file="myruleapp.jar"/>
See res-deploy for a description of the element attributes.
<res-write-file
dir="res_data"
file="myruleapp.jar" />
See res-write-file for a description of the element attributes.
<res-write-db driver="com.ibm.db2.jcc.DB2Driver"
url="jdbc:db2://MYDB2Server:50000/MyIncance"
userid="resusername" password="respassword" file="myruleapp.jar">
<classpath>
<pathelement location="db2jcc.jar"/>
<pathelement location="db2jcc_license_cu.jar"/>
</classpath>
</res-write-db>
See res-write-db for a description of the element attributes.