On Jan 20, 2008 2:00 PM, mmistroni <[EMAIL PROTECTED]> wrote: > > Bruce, > thanks for replying me on a sunday :)
Sure :-). > > 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 .. I don't see any incorrect or missing routing. At this point I usually I advise the use of a servicemix-eip wiretap endpoint between the file:poller and the custom SE so that you can log the message somewhere to make sure it's coming out of the file:poller. Here's are the docs on the wiretap: http://servicemix.apache.org/servicemix-eip.html#servicemix-eip-WireTap I usually send the messages to a JMS queue so that I can see the message queue count and easily browse the messages via Jconsole, but you can send them wherever you prefer. You're deploying both the custom SE installer.zip file and the SA containing the configuration for it, correct? 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/
