Hi there. I´m trying to create a servicemix application that takes a email and put the content on a file. But i´m not understand how. I did the file-binding sample, but I´m not suceded to adapt this sample to use email. This is waht I did:
servicemix.xml: <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:foo="http://servicemix.org/demo/" xmlns:mail="http://servicemix.apache.org/mail/1.0"> <bean id="jndi" class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" factory-method="makeInitialContext" singleton="true" /> <!-- the JBI container --> <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true"> <sm:activationSpecs> <!-- Write files to the outbox directory --> <sm:activationSpec componentName="fileSender" service="foo:fileSender"> <sm:component> <bean class="org.apache.servicemix.components.file.FileWriter"> <property name="directory" value="outbox" /> </bean> </sm:component> </sm:activationSpec> <sm:activationSpec componentName="emailPoller" service="emailPoller" destinationService="foo:fileSender"> <sm:component> <bean class="org.apache.servicemix.components.email.MimeMailPoller"> <property name="hostName" value="xxxxx" /> <property name="password" value="xxxx" /> <property name="userName" value="xxx" /> <property name="debug" value="true" /> </bean> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:container> </beans> -- View this message in context: http://www.nabble.com/Please-ServiceMix-sample-Email-Poller--%3E-FileWritter-tp24717894p24717894.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
