Hi Guys,

Some problem!

I did as you said and added the code in the blueprint.xml file
I  rebuilt the project using mvn clean install
Deployed the soap-6.0.0.redhat-024.jar by putting in the deploy folder, but
the http://localhost:8181/cxf now is not showing me any services and the
same is the case with http://localhost:8181/hawtio/

If I remove the code:

<bean id="org.apache.cxf.management.counters.CounterRepository" 
        class="org.apache.cxf.management.counters.CounterRepository"> 
        <property name="bus" ref="cxf" /> 
    </bean> 

and rebuild and redeploy .. everything works ok!!

*My doubt:*

1. ) I am putting the code in blueprint.xml as below:

--------------------------------------------------------------------------------
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws";
    xmlns:cxf="http://cxf.apache.org/blueprint/core";
    xsi:schemaLocation="
      http://cxf.apache.org/blueprint/core
http://cxf.apache.org/schemas/blueprint/core.xsd
      http://cxf.apache.org/blueprint/jaxws
http://cxf.apache.org/schemas/blueprint/jaxws.xsd";>

    
    <cxf:bus>
        
              <cxf:features>
                        <cxf:logging/>
            </cxf:features>
    </cxf:bus>
        
        
    <bean id="CounterRepository"
class="org.apache.cxf.management.counters.CounterRepository">
        <property name="bus" ref="cxf" />
    </bean>
        
    
    <jaxws:endpoint id="helloWorld"
                   
implementor="org.jboss.fuse.examples.cxf.jaxws.HelloWorldImpl"
                    address="/HelloWorld"/>
       
</blueprint>
--------------------------------------------------------------------------------

*2.) *Should I put it in the same way or inside <cxf:bus>

Also, I went through the article
([1]http://cxf.apache.org/docs/jmx-management.html)

*3.) *And in the Configuring CXF to Use the ServiceMix 4 MBeanServer section
it talks about CXF configuration file, But I dont see any such file in my
/etc

*4.) Also in the readme of soap it says to add the following*

## Additional configuration options

### Changing /cxf servlet alias

By default CXF Servlet is assigned a '/cxf' alias. You can change it in a
couple of ways

1. Add org.apache.cxf.osgi.cfg to the /etc directory and set the
'org.apache.cxf.servlet.context' property, for example:

*5.) Next question is do I also need to add:*

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-management</artifactId>
    <version>${cxf.version}</version>
</dependency>

in my pom.xml?

Thanks!
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-tp5716827p5716861.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to