| Commit in servicemix/base/src/test/resources/org/servicemix/components/vfs on MAIN | |||
| example_win.xml | +43 | added 1.1 | |
Used when running FileTest usecase on Windows OS. The value of property path in this xml contains an absolute uri file.
servicemix/base/src/test/resources/org/servicemix/components/vfs
example_win.xml added at 1.1
diff -N example_win.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ example_win.xml 6 Aug 2005 11:39:48 -0000 1.1 @@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:foo="http://servicemix.org/cheese/">
+
+ <!-- the JBI container -->
+ <container id="jbi">
+ <components>
+
+ <!-- START SNIPPET: send -->
+ <component id="fileSender" service="foo:fileSender" class="org.servicemix.components.vfs.FileWriter">
+ <property name="path" value="file://c:/tmp/servicemix/vfs/test"/>
+
+ <property name="marshaler">
+ <bean class="org.servicemix.components.util.DefaultFileMarshaler">
+ <property name="fileName">
+ <bean class="org.servicemix._expression_.JaxenStringXPathExpression">
+ <constructor-arg value="concat('sample_', /sample/@id, '.xml')"/>
+ </bean>
+ </property>
+ </bean>
+ </property>
+ </component>
+ <!-- END SNIPPET: send -->
+
+
+
+ <!-- START SNIPPET: poll -->
+ <component id="filePoller" service="foo:filePoller" class="org.servicemix.components.vfs.FilePoller" destinationService="foo:receiver">
+ <property name="workManager" ref="workManager"/>
+ <property name="path" value="file://c:/tmp/servicemix/vfs/test"/>
+ <property name="period" value="1000"/>
+ </component>
+ <!-- END SNIPPET: poll -->
+
+ <component id="receiver" service="foo:receiver" endpoint="receiver" class="org.servicemix.examples.ReceiverComponent"/>
+ </components>
+ </container>
+
+ <bean id="client" class="org.servicemix.client.DefaultServiceMixClient">
+ <constructor-arg ref="jbi"/>
+ </bean>
+
+ <bean id="workManager" class="org.activemq.work.SpringWorkManager"/>
+</beans>
