I think these errors are because the file poller starts before the target endpoint is finished starting. I recommend trying the delay parameter to the file:poller endpoint. For example, setting delay="5000" will tell the poller to wait 5 seconds before processing files on startup.
Good luck, Chris On Feb 4, 2008 1:25 PM, puneetjain <[EMAIL PROTECTED]> wrote: > > Hi, > > I am new to servicemix. I am trying to write an application which read a > text file and from the file system and send to a service engine. Service > Engine process the file data and send the write the process data on > console > or send to a jms. > > Environment: > > Servicemix version : 3.2.1 > Operation System: Windows XP > Java: jdk1.5 > > Step Performed: > > 1. Created a project using maven. > 2. Created a servicemix-file component. Xbean file configuration is > as > follow: > > <beans xmlns:file="http://servicemix.apache.org/file/1.0" > xmlns:tut="urn:servicemix:tutorial" > xmlns:ex="http://www.servicemix.org/example"> > <file:poller service="tut:file" > endpoint="poller" > file="file:///D:/poller" > targetService="ex:httphandler" > targetEndpoint="handlerEndpoint"> > </file:poller> > </beans> > > 3. Created a servicemix-bean. xbean.xml is given below > > <beans xmlns:bean="http://servicemix.apache.org/bean/1.0" > xmlns:ex="http://www.servicemix.org/example"> > <bean:endpoint service="ex:httphandler" endpoint="handlerEndpoint" > bean="#reverserBean"/> > <bean id="reverserBean" > class="com.wipro.oki.servicemix.sample.StringReverserBean" /> > </beans> > > 4. When I deployed the application on servicemix, following exception > raised: > > Exception Raised: > http://www.nabble.com/file/p15276742/servicemix.log servicemix.log > -- > View this message in context: > http://www.nabble.com/Problem-facing-in-creating-servicemix-application-tp15276742s12049p15276742.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
