[Enterprise Extensions only]

Improving performance - overview

The externalization of business logic using BRBeans has many benefits, but doesn't come completely without a cost. Since every business rule is represented by an EJB, then, in the general case, every rule trigger is performed in two parts:

  1. a query is performed to find the EJBs representing the rules to be triggered,
  2. a remote method call is performed on the EJB to actually trigger the rule.
Since both of these steps require going to the server, this can get rather slow. (There is also a third remote method call that is made to determine whether the rule is to be fired locally or remotely.)

This section documents the following ways to improve performance: