Gert, thank you for that important information. This was easy and now it's working. The only problem is, that it emptied now my inbox leaving me with no messages left. Strange behaviour for IMAP...thought it leaves the mails on server...maybe a configuration issue?
Regards Lars BTW: I am watching your tutorial progress ;) Gert Vanthienen wrote: > > Lars, > > To be able to use most of the components mentioned on > http://activemq.apache.org/camel/components.html, you have to add them > as a dependency to your camel SU project. In your case, you need > > <dependency> > <groupId>org.apache.camel</groupId> > <artifactId>camel-mail</artifactId> > <version>${camel-version}</version> > </dependency> > > > Regards, > > Gert > > lhe77 wrote: >> Hi, >> >> currently I try to build a route from a IMAP account into the smx. >> For doing this I had a look at the Camel component list and found there a >> mail component which >> supports imap, pop and smtp. >> >> My Java Route Builder looks like this: >> >> package net.compart.jbi.camel; >> >> import org.apache.camel.Exchange; >> import org.apache.camel.Processor; >> import org.apache.camel.builder.RouteBuilder; >> >> /** >> * A Camel Router >> * >> * @version $Revision: 1.1 $ >> */ >> public class MyRouteBuilder extends RouteBuilder { >> >> public void configure() throws Exception { >> from("imap://[EMAIL PROTECTED]") >> .convertBodyTo(String.class) >> .to("log:net.compart.jbi.camel.MyRouteBuilder"); >> } >> >> } >> >> >> As result of deploying it to smx I receive the following error: >> >> org.apache.camel.RuntimeCamelException: >> org.apache.camel.NoSuchEndpointException: No endpoint could be found for: >> imap://[EMAIL PROTECTED] >> >> >> I also tried with mail://.... instead of imap, but with the same result. >> >> Ideas are welcome :) >> >> Regards, >> Lars >> >> > > > > ----- > --- > Gert Vanthienen > http://www.anova.be > -- View this message in context: http://www.nabble.com/Problem-with-Camel-Mail-Component-in-Route-tp15497818s12049p15499040.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
