...
Note | ||
---|---|---|
| ||
Note that this component is only available in releases >= 3.3. |
Archetype
Two archetypes are provided.
servicemix-vfs-poller-service-unit creates a VFS poller SU:
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-vfs-poller-service-unit \
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
servicemix-vfs-sender-service-unit creates a VFS sender SU:
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-vfs-sender-service-unit \
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
Endpoints
Code Block | ||||
---|---|---|---|---|
| ||||
<vfs:poller service="test:vfsPoller" endpoint="pollerEndpoint" path="file:///home/lhein/input/" targetService="test:vfsSender" period="10000" deleteFile="true" recursive="true" > <property name="marshaler"> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler" /> </property> </vfs:poller> |
...