ACTIVEMQ-106 Drop ConnectionControl Packet

This commit is contained in:
Martyn Taylor 2015-05-15 11:57:10 +01:00
parent 042a8f556a
commit 2de3bfa9f1
2 changed files with 8 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class AMQConnectorImpl implements AMQConnector
public boolean isAllowLinkStealing()
{
// TODO Auto-generated method stub
return false;
return true;
}
@Override

View File

@ -232,6 +232,13 @@ public class OpenWireProtocolManager implements ProtocolManager<Interceptor>
{
case CommandTypes.CONNECTION_INFO:
break;
case CommandTypes.CONNECTION_CONTROL:
/** The ConnectionControl packet sent from client informs the broker that is capable of supporting dynamic
* failover and load balancing. These features are not yet implemented for Artemis OpenWire. Instead we
* simply drop the packet. See: ACTIVEMQ6-108 */
break;
case CommandTypes.CONSUMER_CONTROL:
break;
default:
throw new IllegalStateException("Cannot handle command: " + command);
}