How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.

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.


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

Issue/Introduction

How to hot-deploy/undeploy Rule Template Instance (RTI) through Jconsole/JvisualVM.

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

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