Hello,

I have a simple webservice in servicemix-cxf-se which is made
accessible via a servicemix-cxf-bc consumer to an external client. For
a sticky session load balancing scenario I want a session id to be
generated and added at the binding component (which it doesn’t). I
created a cxf bus configuration for the cxf-bc consumer. I am using
the rather old servicemix version 3.2.3. Can someone give me a hint
why the session id is not generated? The verbose logs do not show any
errors or warnings. Thanks.


cxf-bc xbean:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
       xmlns:hw="http://loadbalance.mycompany.com/2009/services/helloWorld";>

  <cxfbc:consumer wsdl="classpath:hello_world.wsdl"
                  targetService="hw:HelloWorld"
                  targetInterface="hw:HelloWorld"
                  busCfg="cxf-bus.xml"
                  timeout="30" />
</beans>


cxf-bus.xml:

<?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:http-conf="http://cxf.apache.org/transports/http/configuration";
      xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
      xsi:schemaLocation="
            http://cxf.apache.org/transports/http/configuration
                  http://cxf.apache.org/schemas/configuration/http-conf.xsd
          http://cxf.apache.org/transports/http-jetty/configuration
            http://cxf.apache.org/schemas/configuration/http-jetty.xsd
          http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

      <httpj:engine-factory bus="cxf">
            <httpj:engine port="9090">
                  <httpj:sessionSupport>true</httpj:sessionSupport>
            </httpj:engine>
      </httpj:engine-factory>
</beans>


cxf-se xbean:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0";
        xmlns:cxf="http://cxf.apache.org/core";>

        <cxfse:endpoint>
                <cxfse:pojo>
                        <bean 
class="com.mycompany.loadbalance.HelloWorldImpl"></bean>
                </cxfse:pojo>

                <cxfse:inInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                </cxfse:inInterceptors>
                <cxfse:outInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                </cxfse:outInterceptors>
                <cxfse:inFaultInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                </cxfse:inFaultInterceptors>
                <cxfse:outFaultInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                </cxfse:outFaultInterceptors>
        </cxfse:endpoint>

</beans>

Reply via email to