Shishir K. Singh wrote:
Hi,
I am playing with the file component (examples : file-binding). It works
fine if I use the test-file.xml that is provided in the example.

However, it does not seem to work when I remove or change
JaxenStringXPathExpression to ConstantExpression in servicemix.xml and
then usea txt file or xls file.
Am I misisng something. Also, how can I move around a binary file ?

Any hints /tips will be appreciated.
Thanks
Shishir

Try this:
<bean class="org.servicemix.components.util.DefaultFileMarshaler">
                <property name="fileName">
<bean class="org.servicemix.expression.ConstantExpression">
                    <constructor-arg value="yourFilename.ext"/>
                  </bean>
                </property>
              </bean>

Reply via email to