Hi all,

I'm struggling with a simple issue (I don't want to use Camel for
that). I'm using SM 4.2.0-fuse-01-00 and I want to read files and pass
them to a bean.

I wrote simple beans.xml:

<beans>
        <bean id="simpleHelloService"
class="org.xh.studies.servicemix.bean.SimpleHelloService"/>
        <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />

        <bean:endpoint service="ns:SimpleHelloService"
endpoint="beanEndpoint" bean="#simpleHelloService" />
        <file:poller service="ns:FilePoller" deleteFile="false"
endpoint="pollerEndpoint"
file="file://C:/Studies/workspace-servicemix/ejb-to-servicemix4/src/test/resources/data/"
targetService="ns:SimpleHelloService" targetEndpoint="beanEndpoint"/>

</beans>

In log:display and nmr:list I see that both services are registered
and are OK. But unfortunately, files are not read from
C:/Studies/workspace-servicemix/ejb-to-servicemix4/src/test/resources/data/
directory. Or are read but not passed to my bean.

Any ideas how to trace where the problem is? For sure the data
directory is not empty... SimpleHelloService does not get called.

any hints most welcomed.

thanks,
Łukasz

Reply via email to