Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lCommand handling in client

(cherry picked from commit 338a74d)
  • Loading branch information
dejanb committed Mar 6, 2017
1 parent 2dfe0c7 commit b8fc78e
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,6 @@ public void run() {

@Override
public Response processControlCommand(ControlCommand command) throws Exception {
onControlCommand(command);
return null;
}

Expand Down Expand Up @@ -2221,25 +2220,6 @@ void send(ActiveMQDestination destination, ActiveMQMessage msg, MessageId messag
}
}

protected void onControlCommand(ControlCommand command) {
String text = command.getCommand();
if (text != null) {
if ("shutdown".equals(text)) {
LOG.info("JVM told to shutdown");
System.exit(0);
}

// TODO Should we handle the "close" case?
// if (false && "close".equals(text)){
// LOG.error("Broker " + getBrokerInfo() + "shutdown connection");
// try {
// close();
// } catch (JMSException e) {
// }
// }
}
}

protected void onConnectionControl(ConnectionControl command) {
if (command.isFaultTolerant()) {
this.optimizeAcknowledge = false;
Expand Down

0 comments on commit b8fc78e

Please sign in to comment.