Kv Chaos,

The servicemix-soap interceptors will not be transparently invoked by
the container, but you need to set up an InterceptorChain yourself in
the endpoint you're coding and run your message through that chain.
If you are looking for an example, you can find one in the
DefaultJmsProviderMarshaler and DefaultJmsConsumerMarshaler classes in
the servicemix-jms component.  Another example can be found in the
HttpSoapProvider/ConsumerMarshaler classes in the servicemix-http
component.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/5/21 kvchaos <[email protected]>:
>
> I have developed a custom endpoint (non-CXF) that extends ProviderEndpoint.
> I have added the attributes useJBIWrapper and useSOAPEnvelope to the
> endpoint and can be configured through xbean.xml.  So the component needs to
> be able to:
>
> (1) accept JBI-wrapped messages and return result JBI-wrapped; or
> (2) accept SOAP-enveloped messaged and return SOAP-enveloped messages; or
> (3) accept XML payload without unwrapped and similarly return unwrapped
> result.
>
> To do this, I think it proper to use:
>
> org.apache.servicemix.soap.interceptors.jbi.JbiInInterceptor and
> org.apache.servicemix.soap.interceptors.jbi.JbiOutInterceptor
>
> I have the endpoint extending
> org.apache.servicemix.soap.api.InterceptorProvider and have implemented
> getInterceptors() to return an instantiation of the JBI interceptors based
> on the InterceptorProvider.Phase.
>
> How do I configure ServiceMix to intercept messages to and from the endpoint
> and to let it know that it should use the endpoint itself (or some other
> InterceptorProvider if that's preferable) as its InterceptorProvider.
> Should the endpoint itself call the interceptor to handle the message?
>
> I took a look at the cxf-se-bc endpoint, but they are using CXF-specific
> Interceptor and InterceptorProvider (in package import
> org.apache.cxf.interceptor.Interceptor) along with a CXF-specific Server
> objects.
>
> Is there a use case in a sample app that I have happened to miss?
>
> Thanks in advance.
>
> Kv Chaos
>
>
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Add-JBI-interceptors-on-custom-ProviderEndpoint-tp23657005p23657005.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to