<camelContext xmlns="http://camel.apache.org/schema/blueprint">
    <route >
        <from uri="cxf:bean:myListenerEndpoint?dataFormat=POJO&amp;synchronous=true" />
        <log message="The expected operation is :: ${headers.operationName}" />
        <choice>
            <when>
                <simple>${headers.operationName} == 'RegisterUser'</simple>
                    <bean ref="processor" method="processMessage"/>
                <to uri="xslt:file:resources/service/2.0.0/UserRegistration.xsl"/>
            </when>
            <when>
                <simple>${headers.operationName} == 'UpdateUser'</simple>
                <!-- Do the update user logic here -->
                <bean ref="processor" method="updateUser" />
            </when>
        </choice>
    <to uri="cxf:bean:myTargetEndpoint"/>
    </route>
</camelContext> 

相关文章:

  • 2021-11-10
  • 2021-09-20
  • 2021-12-20
  • 2021-12-03
  • 2021-12-17
  • 2021-06-06
  • 2021-12-25
猜你喜欢
  • 2021-08-08
  • 2021-11-09
  • 2021-12-03
  • 2021-10-11
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案