When the control action 'Start' is attempted on a Broker Service from HQ, it fails with the following error message -
-------------------------------------
Method 'start' invocation error
[org.apache.activemq:Type=Broker,BrokerName=localhost]: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException
[Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect]
-------------------------------------
When the Broker Service is already started and the 'Start' control action is taken on it, the action shows successful. However, it actually fails to start a stopped Broker service.
Note that, the 'Stop' Control action works fine when the Broker is started by stopping it. However, the following error message occurs when the 'Stop' Control action is taken on an already stopped Broker service.
-----------------------------
Method 'stop' invocation error [org.apache.activemq:Type=Broker,BrokerName=localhost]: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect]
-----------------------------
It would be good if we disable the irrelevant control actions based on the broker service state. ex: disable stop,gc,removeTopic,removeQueue control actions when broker is already stopped
Or we can atleast show up an appropriate message to the user indicating the invalid action taken. ex: 'Stop' Control action is invalid since the broker is already stopped.
Also typing the "Topic/Queue" name in the search box displays the Topic/Queue name (which was supposed to have been removed through the control action of the broker service).