The servicemix.xml:

> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> 
>     Licensed to the Apache Software Foundation (ASF) under one or more
>     contributor license agreements.  See the NOTICE file distributed with
>     this work for additional information regarding copyright ownership.
>     The ASF licenses this file to You under the Apache License, Version
> 2.0
>     (the "License"); you may not use this file except in compliance with
>     the License.  You may obtain a copy of the License at
> 
>        http://www.apache.org/licenses/LICENSE-2.0
> 
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
> 
> -->
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0";
>            xmlns:foo="http://servicemix.org/demo/";>
> 
>   <bean id="jndi"
> class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" 
>         factory-method="makeInitialContext" singleton="true" />
> 
>       <!-- the JBI container -->
>       <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true">
> 
>               <sm:activationSpecs>
> 
>                       <!-- Write files to the outbox directory -->
>                       <sm:activationSpec componentName="fileSender"
>                               service="foo:fileSender">
>                               <sm:component>
>                                       <bean 
> 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 
> class="org.apache.servicemix.components.file.FilePoller">
>                                               <property name="file" 
> value="inbox" />
>                                               <property name="period" 
> value="1000" />
>                                       </bean>
>                               </sm:component>
>                       </sm:activationSpec>
>               </sm:activationSpecs>
>       </sm:container>
> 
> </beans>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/modifying-fileBC-example---how-to-deploy-tf3368022s12049.html#a9371329
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to