You're right. Though this example when the log level
is set to DEBUG, so I suspect a problem with the
input stream which is not converted before evaluating
the expression. Could you raise a JIRA please ?
On 3/28/07, Bummer <[EMAIL PROTECTED]> wrote:
I have tried sample file binding example with servicemix3.1 (latest
version)
and the file generated in outbox is empty !! size zero !
So I commented out the rename part (filename property with
JaxenStringXPathExpression)
and it generated file with original file content. It worked !!
How do I make it work still using JaxenStringXPathExpression stuff in
file-binding example.
----
<sm:component>
<bean class="org.apache.servicemix.components.file.FileWriter">
<property name="directory" value="D:/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>
--
View this message in context:
http://www.nabble.com/File-Binding-example-error-with-JaxenStringXPathExpression-%28empty-file%29-tf3478845s12049.html#a9708849
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/