Hi,

I have a problem with bus configuration for my webservice endpoint.
Imagine simple service with one method (oneway). I'm trying to configure for
this service to use cxf-logging and cxf-reliableMessaging features.

This is content of working cxf-servlet configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xmlns:cxf="http://cxf.apache.org/core";
      xmlns:wsrm-policy="http://schemas.xmlsoap.org/ws/2005/02/rm/policy";
      xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager";
      xmlns:jaxws="http://cxf.apache.org/jaxws";
      xsi:schemaLocation="
        http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
        http://cxf.apache.org/policy
http://cxf.apache.org/schemas/policy.xsd
        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
        http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd";>

  
   <import resource="classpath:META-INF/cxf/cxf.xml"/>
   <import resource="classpath:cxf.xml"/>
  
   <jaxws:endpoint id="wsrmdemo"
                  implementor="demo.wsrm.DemoServiceImpl"
                  address="/wsrmdemo"
                  /> 
  
   <cxf:bus name="busRM">
      <cxf:features>
         <cxf:logging/>
         <wsrm-mgr:reliableMessaging>
            <wsrm-policy:RMAssertion>
                <wsrm-policy:BaseRetransmissionInterval
Milliseconds="4000"/>           
                <wsrm-policy:AcknowledgementInterval Milliseconds="2000"/>      
    
            </wsrm-policy:RMAssertion> 
            <wsrm-mgr:sourcePolicy>
                <wsrm-mgr:sequenceTerminationPolicy maxLength="5"/>             
       
            </wsrm-mgr:sourcePolicy>     
            <wsrm-mgr:destinationPolicy acceptOffers="false"/>            
         </wsrm-mgr:reliableMessaging>
      </cxf:features>
   </cxf:bus>
</beans>

- this is working fine. When I deploy service like this in Tomcat and
navigate to 
http://localhost:8080/demo
I can see this service being listed under "Available SOAP services" section.

But when I configure endpoint like this
   <jaxws:endpoint id="wsrmdemo"
                  implementor="demo.wsrm.DemoServiceImpl"
                  address="/wsrmdemo"
                  bus="busRM"/> 
and re-deploy, service dissapears from the list of available SOAP services.

So my questions are:
1. why is bus attribute "disabling" the whole endpoint
2. how to properly configure cxf bus for an endpoint

Thanks.

ps: don't know if it helps, but here is content of my web.xml file:
<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"; 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
   
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:META-INF/cxf/cxf.xml</param-value>
  </context-param>
  
  <listener>
    
   
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
    
  <servlet>
    <servlet-name>CXFServlet</servlet-name>
   
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  
  <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
  
  <session-config>
    <session-timeout>120</session-timeout>
  </session-config>
  
</web-app>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Configuring-cxf-bus-for-jax-ws-endpoint-tp5749707.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to