![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
If a rulebase contains multiple application-specific rules, the MAR utility splits a single rulebase into multiple rulebases where each rulebase contains rules with the data source from the same adapter type. The name of the templatized rulebase will be suffixed the type of the TIBCO application. For example, if the rulebase myRulebase.hrb contains rules using the microagents belonging to TIBCO ActiveMatrix BusinessWorks (of type bwengine) and TIBCO Adapter for Active Database (of type adb), then the resulting rulebases will be myRulebase-bwengine.hrt and myRulebase-adb.hrt.If a rulebase contains only agent-specific rules, the rulebase is not split into separate rulebases and neither is the rulebase name suffixed with any type. If you want the name of such a rulebase to be assigned a specific type, use the -Xtype option when creating the monitoring archive file.If the rulebase contains one or more agent-specific rules and one or more application-specific rules, the rulebases are split into agent-specific and application-specific rulebases. For example, if the rulebase myMixedRulebases.hrb contains rules using the Logfile microagent and microagents belonging to TIBCO ActiveMatrix BusinessWorks (of type bwengine) and TIBCO Adapter for Active Database (of type adb). The resulting rulebases will be myMixedRulebases.hrt, myMixedRulebases-bwengine.hrt, and myMixedRulebases-adb.hrt.For Example, if the data source in a rulebase is: COM.TIBCO.ADAPTER.<NAME>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPONENT_INSTANCE>,
While creating or updating a MAR file (using the MAR utility), an incorrect rulebase type is assigned to the rulebase if the rulebase contains one application-specific and one or more agent-specific rules. This problem occurs only if agent-specific rule is created first in the rulebase and the application-specific rule created later. If this happens, the Domain, Deployment, ComponentInstance values are not substituted. It is recommended that when creating or updating a MAR file, the –Xtype option is used to specify the type of the rulebase.The MAR utility, mar, is located in the CONFIG_FOLDER/hawk/bin directory. The MAR utility requires TIBCO Runtime Agent 5.5.4 to be installed.This command creates a MAR file myMarFile.mar that contains all rulebases in the current directory.This command creates a MAR file myMarFile.mar that contains all rulebases in the current directory and includes the provided description.This command creates MAR file myMarFile.mar of type adb and contains two rulebases adb.hrb and agent.hrb.This command creates a MAR file myMarFile.mar that contains all rulebases in the current directory but without converting into them into rulebase templates.This command extracts the rulebase testRB.hrb from the specified MAR file. Any other rulebase contained in the MAR file is not extracted.This command extracts the rulebase testRB.hrb from the specified MAR file and substitute the variables in the rulebase using the key-value pair specified in myprop.properties file.mar t[v]f <marfilename>
If the d option is specified, you have to provide a description. In the command, the options d and f must appear in the same order as the description and MAR file. If the p option is specified, you have to specify the properties file. In the command, the options p and f must appear in the same order as the properties file and MAR file. Updates an existing MAR file by adding to it the files and directories specified by <inputfiles> parameter. -Xtype <type>, See Table 4, Types Assigned to TIBCO Applications for the list of valid types. The MAR utility recognizes the datatype of any rule in a rulebase whose datasource name is in the following format: COM.TIBCO.ADAPTER.<NAME>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPONENT_INSTANCE> or COM.TIBCO.ADAPTER.<NAME>.<TIBCO_DOMAIN>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPONENT_INSTANCE>.The following table lists valid values for some TIBCO applications that you can use when assigning a type to the MAR file.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |