This content has been marked as final.
Show 1 reply
-
1. Re: FileWatcher with SwitchYard
tfennelly Oct 26, 2011 5:40 AM (in response to scisci)1 of 1 people found this helpfulTake a look at the "camel-binding" and "bpm-service" quickstarts. What you're looking for sounds like a hybrid of the two of these examples.
Your switchyard config might end up looking something like....
<?xml version="1.0" encoding="UTF-8"?> <switchyard xmlns="urn:switchyard-config:switchyard:1.0"> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="osdemo" targetNamespace="urn:switchyard-quickstart:bpm-service:1.0"> <service name="ProcessOrder" promote="ProcessOrder"> <camel:binding.camel configURI="file://target/input?fileName=test.txt&initialDelay=50&delete=true"/> </service> <component name="ProcessOrder"> <implementation.bpm xmlns="urn:switchyard-component-bpm:config:1.0" processDefinition="META-INF/ProcessOrder.bpmn" processId="ProcessOrder"> <taskHandler class="org.switchyard.component.bpm.task.SwitchYardServiceTaskHandler" name="SwitchYard Service"/> </implementation.bpm> <service name="ProcessOrder"> <interface.java interface="org.switchyard.quickstarts.bpm.service.ProcessOrder"/> </service> </component> </composite> </switchyard>