Bruce,
  thanks for replying me on a sunday :)

bsnyder wrote:
> 
> 
>>If you're trying to pick up files from the filesystem and send
>>them to the custom SE, then the flow you want is as follows:
>>filesystem --> (file:poller) --> (custom SE)
>>The file:poller picks up files from the filesystem and sends them to
>>the custom SE.
>>I'm also not sure if your namespaces are matching as the namespace in
>>the custom SE must be the namespace used in the xbean.xml of any SU
>>routing to the custom SE. So I'd like to see the full xbean.xml files
>>with namespaces included.
> 
> bruce, what u described
>>filesystem --> (file:poller) --> (custom SE)
> is exactly what i am after. file poller i m sure it work (as it comes from
> the samples where the poller send a filet o the sender, which writes it to
> another dir
> only thing i m puzzled is why request does not get routed to my custom SE
> here's custom SE xbean.xml (file-handler-su)
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans  xmlns:hwse="http://org.apache.servicemix.tutorial/1.0";
>       xmlns:ex="http://www.servicemix.org/example";> 
>   <hwse:endpoint service="ex:filehandler" endpoint="handlerEndpoint"/> 
> </beans>
> 
> and here's xbean.xml for file-su (the one hwere i declare thepoller) (it
> still contains file:sender though i dont use it.. mayb i should remove it
> for clarity purposes)
> 
> <beans xmlns:file="http://servicemix.apache.org/file/1.0";
> 
>        xmlns:tut="urn:servicemix:tutorial"
> 
>        xmlns:hwse="http://org.apache.servicemix.tutorial/1.0";
> 
>       xmlns:ex="http://www.servicemix.org/example";>
> 
>       
> 
>   <!-- add the sender endpoint here -->
> 
>   <file:sender service="tut:file" 
> 
>                endpoint="sender"
> 
>              directory="file:///c:/servicemix-projects/out/" >
> 
>              <property name="marshaler">
> 
>                  <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
> 
>            </property>
> 
>   </file:sender>
> 
>   
> 
>   <!-- add the poller endpoint here -->    
> 
>   <file:poller service="tut:file" 
> 
>                endpoint="poller"
> 
>                file="file:///c:/servicemix-projects/in/" 
> 
>                targetService="ex:filehandler"
> 
>                targetEndpoint="handlerEndpoint">
> 
>                
> 
>                <property name="marshaler">
> 
>                    <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
> 
>               </property>
> 
>    </file:poller>
> 
> 
> 
> 
> 
> </beans>
> 
> 
> 
> my endpoint extends ProviderEndpoint... i m somehow trying to mix sample
> from helloworld-SE iwth the one from tutorial-file  ..
> 
> thanks and regards
>  marco
> 
> 
> 
> 
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
> 
> Blog: http://bruceblog.org/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-while-handling-a-file-send-by-poller-tp14984633s12049p14986782.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to