Achim Nierbeck created CAMEL-6695: ------------------------------------- Summary: mbeansRegistered in DefaultManagementAgent isn't ThreadSafe Key: CAMEL-6695 URL: https://issues.apache.org/jira/browse/CAMEL-6695 Project: Camel Issue Type: Bug Affects Versions: 2.11.1, 2.10.6 Reporter: Achim Nierbeck
This is more or less a "corner-case" I stumbled upon, though the HashSet/HashMap (2.5/2.10 camel versions) in the DefaultManagementAgent containing the registered Mbean _mbeansRegistered_ isn't Thread-Safe. This has been an issue for us while using the ProducerTemplate in a wrongful way, by instantiating the ProducerTemplate during every Route run. As this might be a common mistake by users I'd suggest to improve the _mbeansRegistered_ by using a Synchronized Map. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira