Apply patch for: https://issues.apache.org/jira/browse/AMQ-3326 Use of sync block was causing unneeded serialization of calls to add and remove producers and consumers when the inactivity purge wasn't running.