Hi,

I can expose mbeans using spring features or even adding the needed
information to the 
existing component statistics. However, I understand that for using that
mbean I should 
modify the code of the JBI ServiceMix components, right?

So then, I should extend all the components in order to inform the mbean
with the new 
statistics (basically taking the timestamp when it initiates its work and
when it finishes it ) ? 
Do you know a way for doing this without modifying the JBI components code
or extending 
it ?

Thank you,
Antonio.



gnodet wrote:
> 
> On 11/7/06, AntonioPE <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I would like to execute a stress test against the examples that come with
>> the version 3.0  of ServiceMix. The aim is to evaluate the different
>> ServiceMix components (standard JBI and lightweight components ) that
>> comes
>> with this ESB.
>>
>> So then I need to "inject" some code in the components in order to get de
>> execution times that each component needs to perform its task. My
>> question
>> is how can I do that ??... For my "custom" components should be quite
>> easy
>> but... what about the components (SE/BC) already implemented by the
>> ServiceMix ?
>>
>> I have thought of some options but I'm not quite sure of them:
>>
>> 1.- MBeans: can I register my own MBeans in the ServiceMix components ?
>> Maybe I need to extend the components in order to register the mbean
>> programatically or maybe it is possible to register it declarativaly in
>> the
>> xbean.xml/servicemix.xml file.
> 
> You can expose mbeans using spring features from a xbean.xml /
> servicemix.xml
> file if you want.
> 
>>
>> 2.- Is it possible to use Spring AOP in a JBI packaging configuration ?
>> Maybe it could be an option to use introspection in order to take the
>> time
>> at the "start" and "stop" method of each component. Can I mix Spring
>> introspection tags with ServimeMix component tags ? However, I do not
>> really
>> know which methods are called in the lyfecycle of each component ...
> 
> You can use Spring AOP, but it will mainly work for lightweight components
> or POJO that you deploy.  It will be difficult to use proxies for standard
> JBI components unless configured in a static servicemix.xml configuration
> file (where you can access the components themselves).
> 
>>
>> 3.- Could I do this using listeners?
> 
> Yeah, though you would not be able to retrieve the processing time,
> but rather the response time, which is a bit different.
> 
> If you can, i would advise to add the needed informations to the
> existing component statistics and provide a patch so we can include
> them in future versions.  An average response time would be a good
> addition.
> 
>>
>> Any advice about how to do it will be appreciate...
>> Thank you and best regards,
>> Antonio.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Performance-testing-of-JBI-ServiceMix-Components-tf2589775s12049.html#a7221473
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Performance-testing-of-JBI-ServiceMix-Components-tf2589775s12049.html#a7235014
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to