226.4. サンプルルート

Spring XML で定義された次のルートは、コレクションに対して操作 dbStats を実行します。

指定されたコレクションの DB 統計を取得する

<route>
  <from uri="direct:start" />
  <!-- using bean 'mongoBean' defined above -->
  <to uri="mongodb:mongoBean?database=${mongodb.database}&amp;collection=${mongodb.collection}&amp;operation=getDbStats" />
  <to uri="direct:result" />
</route>