Connection Recovery and Fault Tolerance
Fault tolerance is the ability of the system to continue processing requests even if an unexpected failure occurs in the system. You must select the Connection Recovery check box to achieve fault tolerance. You must give comma separated values in the HostPort field.
RabbitMQ Broker
For RabbitMQ broker, you must configure the NetworkRecoveryInterval(msec) field to achieve connection recovery. If the connection recovery is enabled, the connection recovery waits for the time mentioned in the NetworkRecoveryInterval(msec) field and then retry.
Apache ActiveMQ, Apache Qpid, Red Hat AMQ, and Microsoft Azure Service Bus Brokers
For Apache ActiveMQ (ActiveMQ), Apache Qpid (QPID), Microsoft Azure Service Bus (AzureSB), and Red Hat AMQ (AMQ) brokers, you must configure Retry Interval (msec) and Retry Attempts to achieve connection recovery.
The AMQPSendMessage activity timeout is governed by the TIBCO ActiveMatrix BusinessWorks timeout, whose default value is 3 minutes for all the brokers supported. If a reconnection attempt is made within this time limit, the connection is reestablished, otherwise the TIBCO ActiveMatrix BusinessWorks displays an activity timeout error. Default behavior can be overridden by setting one of the following:
| File Name | Property Name | Location |
|---|---|---|
| bwappnode-<AppNodeName>.tra | java.property.bw.engine.activity.async.waitTime=n(millisec) |
|
| config.ini | bw.engine.activity.async.waitTime=n(millisec) |
|
Setting Retry Properties for Microsoft Azure Service Bus broker
The plug-in provides an option to set
maxReconnectAttempts and
maxReconnectDelay properties as system properties when attempting to connect to Microsoft Azure Service Bus broker.
Setting Retry Properties for Microsoft Azure Service Bus Broker in TIBCO Business Studio at Run Time
- From the TIBCO Business Studio menu, click Run > Run Configurations.
- In the
Run Configurations dialog box, perform the following tasks:
- In the left pane, click .
- In the right pane, click the Arguments tab.
- In the
VM arguments field, add the following parameters:
Dcom.tibco.plugin.amqp.maxReconnectAttempts=<maxReconnectAttempts>Dcom.tibco.plugin.amqp.maxReconnectDelay=<maxReconnectDelay>
Setting Retry Properties for Microsoft Azure Service Bus Broker in TIBCO™ Enterprise Administrator at Run Time
- Navigate to the TIBCO_HOME/bw/version_number/bin directory and open the bwcommon.tra file.
- Add the following parameters to the
java.extended.propertiesproperty:com.tibco.plugin.amqp.maxReconnectAttempts=<maxReconnectAttempts>com.tibco.plugin.amqp.maxReconnectDelay=<maxReconnectDelay>