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