Element Summary

ElementDescriptionClass
componentVFS Componentorg.apache.servicemix.vfs.VFSComponent
pollerA polling endpoint that looks for a file or files in a virtual file system and sends the files to a target service (via the JBI bus), deleting the files by default when they are processed. The polling endpoint uses a file marshaler to send the data as a JBI message; by default this marshaler expects XML payload. For non-XML payload, e.g. plain-text or binary files, use an alternative marshaler such as the org.apache.servicemix.components.util.BinaryFileMarshalerorg.apache.servicemix.vfs.VFSPollingEndpoint
senderAn endpoint which receives messages from the NMR and writes the message to the virtual file system.org.apache.servicemix.vfs.VFSSendingEndpoint

Element Detail

Element: component

ElementTypeDescription
endpoints(poller | sender)*
executor<spring:bean/>
executorFactory<spring:bean/>

Element: poller

AttributeTypeDescription
concurrentExchangexs:boolean
concurrentPollingxs:boolean
delayxs:long
deleteFilexs:booleanSpecifies if files should be deleted after they are processed. Default value is true.
endpointxs:string
firstTimexs:date
interfaceNamexs:QName
pathxs:stringSpecifies a String object representing the path of the file/folder to be polled.

Examples:
  • file:///home/lhein/pollFolder
  • zip:file:///home/lhein/pollFolder/myFile.zip
  • jar:http://www.myhost.com/files/Examples.jar
  • jar:../lib/classes.jar!/META-INF/manifest.mf
  • tar:gz:http://anyhost/dir/mytar.tar.gz!/mytar.tar!/path/in/tar/README.txt
  • tgz:file://anyhost/dir/mytar.tgz!/somepath/somefile
  • gz:/my/gz/file.gz
  • http://myusername@somehost/index.html
  • webdav://somehost:8080/dist
  • ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz
  • sftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz
  • smb://somehost/home
  • tmp://dir/somefile.txt
  • res:path/in/classpath/image.png
  • ram:///any/path/to/file.txt
  • mime:file:///your/path/mail/anymail.mime!/filename.pdf
For further details have a look at {@link http://commons.apache.org/vfs/filesystems.html}.

periodxs:long
recursivexs:boolean
servicexs:QName
targetEndpointxs:string
targetInterfacexs:QName
targetOperationxs:QName
targetServicexs:QName
targetUrixs:string
ElementTypeDescription
componentcomponentthe default component
definition<spring:bean/>
description<spring:bean/>
fileSystemManager<spring:bean/>sets the file system manager
lockManager<spring:bean/>Bean defining the class implementing the file locking strategy. This bean must be an implementation of the org.apache.servicemix.locks.LockManager interface. By default, this will be set to an instances of org.apache.servicemix.common.locks.impl.SimpleLockManager.
marshaler<spring:bean/>Specifies a FileMarshaler object that will marshal file data into the NMR. The default file marshaller can read valid XML data. FileMarshaler objects are implementations of org.apache.servicemix.components.util.FileMarshaler.
scheduler<spring:bean/>
selector<spring:bean/>Specifies a FileSelector object.
serviceUnit<spring:bean/>

Element: sender

AttributeTypeDescription
endpointxs:string
interfaceNamexs:QName
pathxs:stringSpecifies a String object representing the path of the file/folder to be polled.

Examples:
  • file:///home/lhein/pollFolder
  • zip:file:///home/lhein/pollFolder/myFile.zip
  • jar:http://www.myhost.com/files/Examples.jar
  • jar:../lib/classes.jar!/META-INF/manifest.mf
  • tar:gz:http://anyhost/dir/mytar.tar.gz!/mytar.tar!/path/in/tar/README.txt
  • tgz:file://anyhost/dir/mytar.tgz!/somepath/somefile
  • gz:/my/gz/file.gz
  • http://myusername@somehost/index.html
  • webdav://somehost:8080/dist
  • ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz
  • sftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz
  • smb://somehost/home
  • tmp://dir/somefile.txt
  • res:path/in/classpath/image.png
  • ram:///any/path/to/file.txt
  • mime:file:///your/path/mail/anymail.mime!/filename.pdf
For further details have a look at {@link http://commons.apache.org/vfs/filesystems.html}.

servicexs:QName
ElementTypeDescription
definition<spring:bean/>
description<spring:bean/>
fileSystemManager<spring:bean/>sets the file system manager
marshaler<spring:bean/>Specifies a FileMarshaler object that will marshal file data into the NMR. The default file marshaller can read valid XML data. FileMarshaler objects are implementations of org.apache.servicemix.components.util.FileMarshaler.
serviceUnit<spring:bean/>