It would be better to always use a single object instead of creating new ones each time.
On Wed, Oct 22, 2008 at 12:01 PM, dhoni2008 <[EMAIL PROTECTED]> wrote: > > Hi, > I need some clarification regarding the usage of SourceTransformer. I am > using SourceTransformer class providded by servicemix to convert the > NormalizedMessage contents into String. > > But my concern is, will there by any differnece in performance wise or > functionality wise on the usage of this SourceTransformer object. > > In some places of servicemix source, the sourceTransformer object is being > created every time. But in some places this is being used at static level. > > We are handling messages of very large size. So, any small difference in > performance wise has an impact. > > Please suggest the optimized way of using this object. > > Regards > Gopi Krishna > > > -- > View this message in context: > http://www.nabble.com/Reg-%3A-Usage-of-SourceTransformer-tp20107500p20107500.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
