How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.
book
Article ID: KB0092815
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
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.
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)
3- unDeployRuleTemplateInstances(String rulesession) -- > will undeploy all RuleTemplateInstances recursive. Example : unDeployRuleTemplateInstances (inference-class)
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).
Resolution
Sample BE logs :
During Rule template deployment:
2015 Jun 23 15:04:26:471 GMT -7 Inf Info [RMI_TCP_Connection(9)-10.108.64.81] - [runtime.service] Cluster [CreditCardApplication] : Hot deployment of rule template instance [test] requested. 2015 Jun 23 15:04:26:471 GMT -7 Inf Info [CreditCardApplication.worker-1] - [runtime.service] RuleTemplateDeploymentTransaction[7] CREATED 2015 Jun 23 15:04:26:471 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[7] PREPARING 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[7] PREPARING Suspended channels. 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[7] PREPARED 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[7] COMMITTING 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[7] COMMITTING Suspended WMs. 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[7] COMMITTING Resumed WMs. 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[7] COMMITTED 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-0] - [runtime.service] RuleTemplateDeploymentTransaction[7] CLOSING 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-0] - [runtime.service] RuleTemplateDeploymentTransaction[7] CLOSING Resumed channels. 2015 Jun 23 15:04:26:472 GMT -7 Inf Info [CreditCardApplication.worker-0] - [runtime.service] RuleTemplateDeploymentTransaction[7] CLOSED
During Rule template undeployment:
2015 Jun 23 15:05:45:279 GMT -7 Inf Info [RMI_TCP_Connection(10)-10.108.64.81] - [runtime.service] Cluster [CreditCardApplication] : Hot undeployment of rule template instance [test] requested. 2015 Jun 23 15:05:45:279 GMT -7 Inf Info [CreditCardApplication.worker-0] - [runtime.service] RuleTemplateDeploymentTransaction[8] CREATED 2015 Jun 23 15:05:45:279 GMT -7 Inf Info [CreditCardApplication.worker-1] - [runtime.service] RuleTemplateDeploymentTransaction[8] PREPARING 2015 Jun 23 15:05:45:279 GMT -7 Inf Info [CreditCardApplication.worker-1] - [runtime.service] RuleTemplateDeploymentTransaction[8] PREPARING Suspended channels. 2015 Jun 23 15:05:45:279 GMT -7 Inf Info [CreditCardApplication.worker-1] - [runtime.service] RuleTemplateDeploymentTransaction[8] PREPARED 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[8] COMMITTING 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[8] COMMITTING Suspended WMs. 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-2] - [kernel.core] Rule undeployed: RTa2c29561-a4a8-450b-af0e-19b9acf45159 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[8] COMMITTING Resumed WMs. 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-2] - [runtime.service] RuleTemplateDeploymentTransaction[8] COMMITTED 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[8] CLOSING 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[8] CLOSING Resumed channels. 2015 Jun 23 15:05:45:280 GMT -7 Inf Info [CreditCardApplication.worker-3] - [runtime.service] RuleTemplateDeploymentTransaction[8] CLOSED
Issue/Introduction
How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.
Attachments
How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.get_app
How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.get_app
How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.get_app