Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.1
-
None
Description
It's possible that we do not need to synchronize the getters and setters of the NormalizedMessageImpl class. Removing these synchronizations should increase performance when manipulating messages. Whoever authored this class should be consulted as to the reasons behind doing this. Are we worried about multiple threads accessing the same normalized message? The only time I see this happening is if a component spawns multiple threads working on the same NormalizedMessage, but even in this case we could use a wrapper class that synchronizes the necessary methods. Perhaps there is something in the core library of servicemix that needs these synchronized?