Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 37 Deployable Files Generation and Deployment for WebStudio : Business Rule Hot Deployment

Business Rule Hot Deployment
For hot deployment of a business rule, you need to have a generated EAR for the project (see Generating the Project EAR or All Project Class Files).
Then, after you have updated the business rule and generated the rule template instance file (see Generating One Business Rule’s Rule Template Instance File), you can hot deploy the classes to running TIBCO BusinessEvents engines using JMX.
To Hot Deploy Rule Template Instance using JMX
1.
Open the CDD file of the project and add the property be.cluster.ruletemplateinstances.deploy.dir under the appropriate processing unit, for example default.
The property points to the location where artifacts are generated and identified by the property ws.artifact.deploy.location (see WS-RMS-Common Property Group for more details on the property). For example, the rule template instance file for the CreditCardApplication project is stored at
BE_HOME\rms\shared\CreditCardApplication
2.
3.
4.
Open a command window in the bin directory of your JDK installation and type jconsole and press Enter. You see the New Connection dialog.
5.
6.
Select the MBeans tab and expand the tree nodes on the left to com.tibco.be > Cluster > Operations.
7.
Specify the agent name (for example, inference-class) and click loadAndDeployRuleTemplateInstances .
A confirmation message is displayed that the rule template instance is deployed.
Now the rule template instance is in Rete, and on asserting events/concepts the appropriate rule template instance gets executed.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved