229.5. 路由示例

Spring XML 中定义的以下路由在集合上执行操作 dbStats

获取指定集合的 DB 统计

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