Hi,
For the CXF webservice metrics, you can add
org.apache.cxf.management.counters.CounterRepository bean for your bundle, so
that could be wired by cxf bus.
If you use soap example, edit
src/main/resources/OSGI-INF/blueprint/blueprint.xml in that example, simply add
<bean id="org.apache.cxf.management.counters.CounterRepository"
class="org.apache.cxf.management.counters.CounterRepository">
<property name="bus" ref="cxf" />
</bean>
After you do a webservice invocation, you can see a Performance.Counter.Server
Mbean under org.apache.cxf where you can get metrics you want.
You can get more details from [1], the "How to get web service performance
metrics " chapter.
[1]http://cxf.apache.org/docs/jmx-management.html
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-5-22, at 下午11:37, kunalsuri wrote:
> Guys,
>
> I have been working on to setup an environment to get the metrics like load,
> response time, execution time from a web service deployed in an ESB. (I am
> using Fuse ESB as of now)
>
> I have understood the procedure to use JMX along with use of the bundle
> jolokia and hawtio. It was a great help to understand what all data I can
> get form the Mbeans of ServiceMix.
> (http://servicemix.396122.n5.nabble.com/programmatically-get-server-load-information-from-Apache-ServiceMix-using-JMX-td5716769.html#a5716784)
>
>
> Now, the next step was that I created an ws-cxf webservice on the bases of
> the example given in Fuse ESB by the name 'soap'.
> This web-service I deployed by putting the jar file (that was created after
> maven build in its target folder) in the deployment folder and the service
> was successfully tested through SoapUI. (using a WSDL file)
>
> But when I tried to see what all metrics are available from Mbeans, I saw
> that nothing much is present under the hood of org.apache.cxf (Saw it using
> Hawtio)
> It just has attributes like Address, State under Bus.Service.Endpoint of my
> deployed service
>
> Thus, can you please help me to understand the following:
>
> 1. )
> Is there some other Mbean that I am missing that can give me the metrics of
> ws-cxf-service deployed in ServiceMix ?
>
> OR
>
> Is it that only through camel based service (like given by Gert in
> smx-ws-examples ) we can get those metrics value.
>
> 2.)
> Also, if I saw that in the example of ws-camel-service in smx-ws-examples
> the context.xml says
>
>
> Does it means to use a camel based web-service I need to always create a
> WSDL and tehn go form top-to down and not from a Java class to wsdl ?
>
> I know that my questions may sound trivial, but still they may be of some
> help to another amateur who might have to struggle with the same doubts in
> future
>
> Regards,
> Kunal
>
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/ws-camel-service-vs-WS-cxf-service-Which-is-better-to-get-the-metrics-tp5716827.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.