346.8. Spring DSL

다음 예제에서는 thrift 데이터 유형 Spring을 사용하여 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>