THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://xbean.org/schemas/spring/1.0" xmlns:spring="http://xbean.org/schemas/spring/1.0" xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns: xmlns:foo="http://servicemix.org/demo/"> <!-- the JBI container --> <sm:container id="jbi" useMBeanServer="false" createMBeanServer="false" dumpStats="true" statsInterval="10"> <sm:activationSpecs> <!-- Write files to the outbox directory --> <sm:activationSpec componentName="fileSender" service="foo:fileSender"> <sm:component> <bean xmlnsclass="http://xbean.org/schemas/spring/1.0" class="org.apache.servicemix.components.file.FileWriter"> <property name="directory" value="outbox" /> <property name="marshaler"> <bean class="org.apache.servicemix.components.util.DefaultFileMarshaler"> <property name="fileName"> <bean class="org.apache.servicemix.expression.JaxenStringXPathExpression"> <constructor-arg value="concat('sample_', /sample/@id, '.xml')" /> </bean> </property> </bean> </property> </bean> </sm:component> </sm:activationSpec> <!-- Look for files in the inbox directory --> <sm:activationSpec componentName="filePoller" destinationService="foo:fileSender" service="foo:filePoller"> <sm:component> <bean xmlnsclass="http://xbean.org/schemas/spring/1.0" class="org.apache.servicemix.components.file.FilePoller"> <property name="workManager" ref="workManager" /> <property name="file" value="inbox" /> <property name="period" value="1000" /> </bean> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:container> <!-- the work manager (thread pool) for this container --> <bean id="workManager" class="org.jencks.factory.WorkManagerFactoryBean"> <property name="threadPoolSize" value="30" /> </bean> </beans> |
...