Description: Description:To Hot Deploy Rule Template Instance using JMX , open the Project CDD file and add the property
be.cluster.ruletemplateinstances.deploy.dir under the appropriate processing unit. The property points to the location where artifacts are generated and identified by the property ws.artifact.deploy.location.
Example:
<property-group>
<property name="be.cluster.ruletemplateinstances.deploy.dir" value="E:\tibco_5.1.2\be\5.1\rms\shared\OverdraftNotifications"/>
</property-group>
After making the changes, start the engine and connect to Jconsole/JvisualVM using the JMX port and select the MBeans --> com.tibco.be > RuleTemplateDeployer ->RuleTemplateInstanceDeployer
(Refer to the attached screenshots, filename: RTI.jpg, RTI_deployment.jpg and RTI_undeployment.png). Two operations available for deployment undeployment are loadAndDeployRuleTemplateInstances() and unDeployRuleTemplateInstances()
The parameters are the same for both methods.
For loadAndDeployRuleTemplateInstances Method:
1- loadAndDeployRuleTemplateInstances(String rulesession) -- > will deploy all RuleTemplateInstances recursive.
Example : unDeployRuleTemplateInstances (inference-class)
2- loadAndDeployRuleTemplateInstances(String rulesession, String projectname,String ruleTemplateInstance)
Example : unDeployRuleTemplateInstances (inference-class , Rule_Templates , test)
For unDeployRuleTemplateInstances Method:
3- unDeployRuleTemplateInstances(String rulesession) -- > will undeploy all RuleTemplateInstances recursive.
Example : unDeployRuleTemplateInstances (inference-class)
4- unDeployRuleTemplateInstances(String rulesession, String projectname,String ruleTemplateInstance)
Example : unDeployRuleTemplateInstances (inference-class , Rule_Templates , test)
Here are the above method argument descriptions.
String rulesession -- rulesession name ie inference-class
String projectname -- Projectfolder name where rule templates are defined. In case of CreditCardApplication project (/CreditCardApplication/Rule_Templates) then it would be Rule_Templates
String ruleTemplateInstance -- Name of the ruleTemplateInstance , for example test.ruletemplateinstance is the RTI created then include only the name 'test' (Do not give .ruletemplateinstance suffix).