506629361 发表于 2017-12-24 19:43:06

Apache Camel 组件SMB, Blueprint应用

<?xml version="1.0" encoding="UTF-8"?>  
<!--
  Starter Blueprint Camel Definition TrialSamba
  
-->
  
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:camel="http://camel.apache.org/schema/blueprint"
  xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
  xsi:schemaLocation="
  http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
  http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
  

  <!-- Basic Bean Definitions-->
  <bean>
  <!-- the filename for the store -->
  <property name="fileStore" value="/tmp/smb/.filestore.dat"/>
  <!-- the max filesize in bytes for the file. Camel will trunk and flush the cache
  if the file gets bigger -->
  <property name="maxFileStoreSize" value="512000"/>
  <!-- the number of elements in our store -->
  <property name="cacheSize" value="250"/>
  </bean>
  

  <bean/>
  


  <!-- Osgi Service>  <!--
  Exposing Services :
  ...
  

  References to Services :
  <reference availability="optional" interface="foo.bar.IBaz"/>
  -->
  <camelContext trace="false" xmlns="http://camel.apache.org/schema/blueprint">
  <camel:route>
  <camel:from uri="smb://domainName;username@IP/ShareFoldername/?password=yourpasswordhere&useFixedDelay=true&delay=10000&runLoggingLevel=debug&noop=true&idempotentRepository=#fileStore&antInclude=*.CMS"/>
  <camel:log message="file: ${header.CamelFileName}"/>
  <camel:to uri="file:/tmp/smb?tempFileName=processing.tmp"/>
  </camel:route>
  </camelContext>
  

  

  

  
</blueprint>
  
页: [1]
查看完整版本: Apache Camel 组件SMB, Blueprint应用