camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bocamel <>
Subject camel-mail and camel-cxf incompatible?
Date Sun, 20 Apr 2014 18:26:56 GMT
I am having a problem with a camel project that uses both camel-mail and
camel-cxf.  If only camel-mail is used, it can successfully consume emails
from an IMAP endpoint.  But if camel-cxf maven dependency is included, even
if there is no cxfendpoint route defined in Camel Context, the IMAP consumer
would not consume emails if mapMailMessage is set to false.  If
mapMailMessage is set to true, the IMAP consumer does consume emails, but I
get the null exchange exception because the emails may be multipart
messages.  When the IMAP consumer does not consume, there is no error
message in the log.  I am running Camel 2.13.0 and
cxf-rt-transports-http-jetty 2.7.10.  Any help would be greatly appreciated.
Another strange thing is that the application would work fine when running
under Eclipse.

Here is my camel-context:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns=""

<bean id="myProc" class="com.pci.TestImapConsumer.MailProc" />
<bean id="myGroovyProc" class="com.pci.TestImapConsumer.GroovyMailProc" />

  <camel:camelContext xmlns="">
      <camel:log message="***** Email received from IMAP." />
      <camel:process ref="myGroovyProc" />


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message