Red Hat Training

A Red Hat training course is available for Red Hat Fuse

319.7. Spring DSL

以下の例は、Trift を使用して Thrift データ型を設定する thrift を使用してアンマーシャリングする方法を示しています。

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
  <route>
    <from uri="direct:start"/>
    <unmarshal>
      <thrift instanceClass="org.apache.camel.dataformat.thrift.generated.Work" />
    </unmarshal>
    <to uri="mock:result"/>
  </route>
</camelContext>