we are using contentToString(source) method in SourceTransformer class to convert the NM contents into string .
gnodet wrote: > > What methods do you use ? > > On Wed, Oct 22, 2008 at 2:37 PM, dhoni2008 > <[EMAIL PROTECTED]> wrote: >> >> But I am getting stream exceptions while using the sourcetransformer as >> static object when we test our application with 5 concurrent users. When >> I >> create a new object every time I am not getting any stream exceptions. >> >> Regards >> >> >> gnodet wrote: >>> >>> 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 >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Reg-%3A-Usage-of-SourceTransformer-tp20107500p20109831.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 > > -- View this message in context: http://www.nabble.com/Reg-%3A-Usage-of-SourceTransformer-tp20107500p20110219.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
