High Quality JMS Messaging.

CLI Command Line Interface

Connect to SwiftMQ HA Router

To connect with CLI to a SwiftMQ HA Router, use the SMQP-URL supplied from the HA Wizard (in file "ha_next_tasks.txt") and lookup the connection factory.

CLI connects to the ACTIVE HA instance. The STANDBY HA instance is hidden. CLI automatically reconnects after a failover and has always a connection to the ACTIVE HA instance.

Requests during Failover

CLI interacts with the Management Swiftlet of the ACTIVE HA instance in a request/reply manner. If a request (e.g. configuration change or viewing queue messages) is issued and a failover occurs before a reply to this request is received, the request will be canceled with a warning message. The request must be issued again after the failover.

CLI Admin API

There is a new CLIReconnectedException (extends CLIException) that can be used to recreate a CLI context after a failover. See the CLI Admin API documentation for detailed information and code samples.

Additional Commands

To manage both HA instances, CLI in HA edition has additional commands resp commands have changed behavior. These commands are located at the level of the router's Swiftlet Manager.

Commands with different behavior are:

Command Description
reboot Reboot ACTIVE and STANDBY HA instance
halt Halt ACTIVE and STANDBY HA instance
save Save ACTIVE and STANDBY configuration

New commands are:

Command Description
rebootactive Reboot ACTIVE HA instance
rebootstandby Reboot STANDBY HA instance
haltactive Halt ACTIVE HA instance
haltstandby Halt STANDBY HA instance