Hello,
how can I set and get a message parameter in my own interceptor?
I have own testInterceptor in *cxfbc:consumer* and set a new message
parameter:
    public void handleMessage(Message message) {
        message.put("KEY", "value");

The message is than routed to *cxfbc:provider*.
But the *message doesnt contain this parameter* in cxfbc:provider.
Why?
How can I achieve message parameter is transfered from consumer to provider?

I use osgi deployment in apache-servicemix-4.4.1-fuse-02-05

Thanks,
Radomir

*The endpoints configuration:*
    <cxfbc:consumer    
        service="isl-a:IslAWebService"
        endpoint="IslAWebServiceSoap"
        locationURI="${ws-isl-a.esbUrl}"
        wsdl="classpath:wsdl/isl_a.wsdl"
        targetService="isl-a:IslAWebService"
        targetEndpoint="IslAWebServiceSoapProvider"
        schemaValidationEnabled="true"
        delegateToJaas="true"
        properties="#properties"
        providedBus="#cxf"
        >
        <cxfbc:inInterceptors>
            <ref bean="testInterceptor" />
            <ref bean="UserName_RequestIn" />
            <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
        </cxfbc:inInterceptors>
    </cxfbc:consumer>

    <cxfbc:provider
        service="isl-a:IslAWebService"
        endpoint="IslAWebServiceSoapProvider"
        wsdl="classpath:wsdl/isl_a.wsdl"
        locationURI="http://localhost:8194/islAFile";
        >        
        <cxfbc:inInterceptors>
            <ref bean="testInterceptor" />
            <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
        </cxfbc:inInterceptors>
        <cxfbc:outInterceptors>
            <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"
/>
        </cxfbc:outInterceptors>
    </cxfbc:provider>


--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Setting-and-transfering-message-parameters-tp5645861p5645861.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to