In org.apache.servicemix.jbi.messaging.NormalizedMessageImpl, it appears that 
the getters and setters are innappropriately synchronized
---------------------------------------------------------------------------------------------------------------------------------------

         Key: SM-384
         URL: https://issues.apache.org/activemq/browse/SM-384
     Project: ServiceMix
        Type: Improvement

  Components: servicemix-core  
    Versions: 3.0    
    Reporter: Jeff Puro


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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to