The procedure in this section explains how to set up a BAR file as an inference agent or query agent. Most of the actions require background understanding. Object management configuration is explained in detail in the referenced sections.
2. If you have not yet added a BAR to the EAR resource, open the EAR, right-click in the design panel, and select Add Resource > BusinessEvents Workbench > BusinessEvents Archive.
4. In the Configuration tab, provide a name and optionally a description. You can also add a person’s name in the Author field.
− Select Query to configure a query agent. Query agents are available for Cache object management only, and only in TIBCO BusinessEvents Enterprise Suite.See Configuration for a reference to the settings.
− Select A Selection of RuleSets and then browse to and select the rule sets you want to include in this BAR. See Deploying Many Agents on One Machine With TIBCO Administrator for more information.
− Select Custom and then check the Enable checkbox for all enable the destination listeners you want to use.BusinessEvents checks the Default column if the default event for that destination is used in a rule set selected for deployment on the RuleSets tab.Preprocessors for Input Destinations
a. Click in the Preprocessor field. You see the Search button. Browse to and select the rule function you have set up to be the preprocessor for the destination.Only functions with one argument of type simple event appear in the list. See Working With Event Preprocessors.To remove a preprocessor from the Preprocessor field, click the Search button, then click OK without making a selection.
b. In the Workers field, select a number of worker threads to be created, or choose one of the other values.
c. If you selected a number of worker threads in the Workers field, in the Queue Size field, select a queue size.See Input Destinations for a reference to the settings.Startup and Shutdown
9. Select the Startup/Shutdown tab if you want to select rule functions that perform startup and shutdown actions.
a. Click the plus sign to browse to and select a function. Only rule functions that take no argument and whose Validity field (in the rule function’s Configuration tab) is set to Action appear in the list.
b. If you have selected more than one function in one list, click the up and down arrows to arrange the functions. BusinessEvents calls the functions in the order listed.See Startup and Shutdown for a reference to the settings.Object Management
10. Select the Object Management tab. From the Type drop-down list, select one of the options:
− Cache: See Chapter 17, Understanding Cache OM and Multi-Engine Features through Chapter 23, Configuring Query Agents (Cache OM) for details on caching features and configuration.For Persistence and Cache options, setting up object management is a larger task than simply configuring this tab. See the referenced sections for details.
11. Click Apply and save the project.
Copyright © TIBCO Software Inc. All Rights Reserved.