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
