Another option is use camel transport provided by camel-cxf component,
from which you can use camel-jetty with cxf interceptors to support
ws-security
you need spring configuration like
<cxf:cxfEndpoint id="routerEndpoint" name="test:TimestampSignEncrypt"
address="camel://jetty:http://localhost:9000/SOAPServiceWSSecurity/TimestampSignEncrypt"
serviceClass="org.apache.hello_world_soap_http.Greeter">
<cxf:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</cxf:features>
<cxf:outInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor"/>
<ref bean="TimestampSignEncrypt_Response"/>
</cxf:outInterceptors>
<cxf:inInterceptors>
<ref bean="TimestampSignEncrypt_Request"/>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
And your camel configure code looks like
from("cxf:bean:routerEndpoint").process(new Processor)
.to("seda:otherComponent");
Regards
Freeman
Willem Jiang wrote:
Maybe you can try out the camel-cxf component[1] instead of
camel-jetty component.
You can add the ws-security interceptor to the CXF endpoint.
[1]http://cwiki.apache.org/CAMEL/cxf.html
Willem.
Micky Santomax wrote:
Can someone help me ?
Micky Santomax wrote:
I have following configuration :
public void configure() throws Exception {
this.from("jetty:http://url")
.process(new Processor)
.to("seda:otherComponent");
}
How can I add a ws-security in interceptor to jetty endpoint ?