activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Gapaillard <>
Subject Activemq and imap camel component
Date Wed, 11 Jan 2012 06:46:43 GMT
Hi all,

I succeed to send an imap message from camel to activemq. But I have a
problem, I have all information except the body.

My camel configuration inside activeMQ:

<camelContext id="camel" xmlns="">
    <jmxAgent id="agent" disabled="true"/>
      <from uri="imaps://;password=xxxxxxx&amp;delete=false&amp;unseen=true"
      <to uri="activemq:Q1.mail" />

 <!-- configure the camel activemq component to use the current broker -->
<bean id="activemq"
  <property name="connectionFactory">
    <bean class="org.apache.activemq.ActiveMQConnectionFactory">
      <property name="brokerURL"

>From activemq side I have this message when I consume the email from the
imap server :

Cannot determine specific JmsMessage type to use from body class. Will use
generic JmsMessage. Body class: javax.mail.internet.MimeMultipart. If you
want to send a POJO then your class might need to implement, or you can force a specific type by setting the
jmsMessageType option on the JMS endpoint.

I guess the object javax.mail.internet.MimeMultipart sent by camel is not
The message I receive in my JMS client:

ActiveMQMessage {commandId = 5, responseRequired = true, messageId =
ID:plop-laptop-42681-1326258465826-2:1:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:plop-laptop-42681-1326258465826-2:1:1:1, destination = queue://Q1.mail,
transactionId = null, expiration = 0, timestamp = 1326258534134, arrival =
0, brokerInTime = 1326258534135, brokerOutTime = 1326258534159,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
org.apache.activemq.util.ByteSequence@1ebf1eb, dataStructure = null,
redeliveryCounter = 0, size = 0, properties =
{; spf=pass ( domain
of designates as permitted sender); dkim=pass, Return_HYPHEN_Path=<>,
MIME_HYPHEN_Version=1.0, Message_HYPHEN_ID=<>,
boundary=20cf3074b14c4bc59604b639a0c8, Date=Wed, 11 Jan 2012 06:08:45
+0100, Subject=mail de test,,, From=Plop <>,
DKIM_HYPHEN_Signature=v=1; a=rsa-sha256; c=relaxed/relaxed;;
 YyuRbavP8ZYd47aGZHlKIzEhjwGLfRDDSycwk=, Received_HYPHEN_SPF=pass ( domain of
 designates as permitted sender) client-ip=;},
readOnlyProperties = true, readOnlyBody = true, droppable = false}

How can I do to fix or work around this problem between camel and activemq
? If someone has an idea.

Thank you for your help.

Nicolas Gapaillard

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message