Advertisement
gusto2

osgi blueprint cxf camel

Oct 5th, 2013
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.15 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <blueprint
  3.    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
  4.    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.    xmlns:cxf="http://cxf.apache.org/blueprint/core"
  6.    xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
  7.    xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
  8.    xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
  9.    xsi:schemaLocation="
  10.        http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
  11.        http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd http://camel.apache.org/schema/blueprint
  12.        http://camel.apache.org/schema/blueprint/camel-blueprint.xsd http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
  13.        http://svn.apache.org/repos/asf/aries/trunk/blueprint/blueprint-cm/src/main/resources/org/apache/aries/blueprint/compendium/cm/blueprint-cm-1.1.0.xsd
  14.        http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
  15.        http://cxf.apache.org/blueprint/jaxws       http://cxf.apache.org/schemas/blueprint/jaxws.xsd">
  16.  
  17.  
  18.         <camelcxf:cxfEndpoint id="xxxxxx"
  19.                          address="/api/external/WontdiscloseService"
  20.                          serviceClass="deleted.replace">
  21.         <camelcxf:properties>
  22.             <entry key="dataFormat" value="PAYLOAD" />
  23. <!-- =======  USED IN CASE OF JAAS WSS UsernameToken authentication =========== -->
  24. <!--
  25.           <entry key="ws-security.validate.token" value="false" />
  26.            <entry key="ws-security.ut.no-callbacks" value="true"/>
  27. -->
  28.         </camelcxf:properties>
  29.         <camelcxf:outInterceptors>
  30.             <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
  31.         </camelcxf:outInterceptors>
  32.         <camelcxf:inInterceptors>
  33.             <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
  34. <!-- =======  USED IN CASE OF JAAS WSS UsernameToken authentication =========== -->
  35. <!--
  36.            <ref component-id="wsSecInterceptor" />
  37.            <ref component-id="authenticationInterceptor"/>
  38. -->
  39.         </camelcxf:inInterceptors>
  40.     </camelcxf:cxfEndpoint>
  41.    
  42. <!-- =======  USED IN CASE OF JAAS WSS UsernameToken authentication =========== -->
  43. <!--
  44.    <bean id="authenticationInterceptor"
  45.          class="org.apache.cxf.interceptor.security.JAASLoginInterceptor">
  46.        <property name="contextName" value="karaf"/>
  47.    </bean>
  48.    
  49.    <bean id="wsSecInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
  50.        <argument>
  51.            <map>
  52.                <entry key="action" value="UsernameToken"/>
  53.                <entry key="passwordType" value="PasswordText"/>
  54.            </map>
  55.        </argument>
  56.    </bean>    
  57.    -->
  58.     <camelContext xmlns="http://camel.apache.org/schema/blueprint" id="OrgApiWs">
  59.         <route id="xxxxxxRoute">
  60.             <from uri="xxxxxx" />
  61.             <to uri="log:wsorganization?level=DEBUG" />
  62.             <to uri="vm:xxx.task" />
  63.             <to uri="vm:egov.logging" />
  64.         </route>
  65.     </camelContext>
  66.    
  67. </blueprint>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement