Hi los, it's quite good, thanks a lot. The only problem is that no trasformation is done. I receive the XML copied in the destination directory but no xslt tranformation has been applied. And I don't receive errors...
Some idea? Here the new code: <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:foo="http://servicemix.org/demo/"> <!-- the JBI container --> <sm:container id="jbi" name="writer" flowName="jms" useMBeanServer="true" createMBeanServer="true" dumpStats="true" statsInterval="10" rmiPort="1111"> <sm:activationSpecs> <!-- Write files to the outbox directory --> <sm:activationSpec componentName="fileTranslator" service="foo:fileTranslator" destinationService="foo:fileSender"> <sm:component> <bean class="org.apache.servicemix.components.xslt.XsltComponent"> <property name="xsltResource" value="classpath:transform_xml_sql.xsl"/> </bean> </sm:component> </sm:activationSpec> <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('rfid_', /Matrics/@id, '.xml')"/> </bean> </property> </bean> </property> </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> Bye Alex -- View this message in context: http://www.nabble.com/XSLT-transform-and-file-save-tf2652926s12049.html#a7407583 Sent from the ServiceMix - User mailing list archive at Nabble.com.
