Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 290BD9224 for ; Wed, 11 Jan 2012 06:47:24 +0000 (UTC) Received: (qmail 13308 invoked by uid 500); 11 Jan 2012 06:47:22 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 12799 invoked by uid 500); 11 Jan 2012 06:47:15 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 12789 invoked by uid 99); 11 Jan 2012 06:47:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2012 06:47:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nicolas.gapaillard@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2012 06:47:05 +0000 Received: by qabg27 with SMTP id g27so2148408qab.2 for ; Tue, 10 Jan 2012 22:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=zSyaVTJQ4STHkwFMXXthUDR0JKloI6emQ8ZdAhTQbe0=; b=oiA/W1s6cT1bjOGquTAQIqhYrXegtN0kQxmToD4swQYaCgDG+pWF+OTh4CPtj2Yefu EJ927jxToWi6sbL4Sb+m0hCKQyqOhzr3bM5lSnHZfk2qh0M48hl1AinlJTycL4doJ8BK NlOA6/c+cRaDkoBQ7iPGUAUL/8t1Q81EV6mdo= MIME-Version: 1.0 Received: by 10.224.31.202 with SMTP id z10mr28294758qac.96.1326264403952; Tue, 10 Jan 2012 22:46:43 -0800 (PST) Received: by 10.229.117.232 with HTTP; Tue, 10 Jan 2012 22:46:43 -0800 (PST) Date: Wed, 11 Jan 2012 07:46:43 +0100 Message-ID: Subject: Activemq and imap camel component From: Nicolas Gapaillard To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=20cf3074b14cad048604b63afef8 --20cf3074b14cad048604b63afef8 Content-Type: text/plain; charset=UTF-8 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: >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 java.io.Serializable, 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 serializable. 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 = {Authentication_HYPHEN_Results=mr.google.com; spf=pass (google.com: domain of plop@gmail.com designates 10.224.31.202 as permitted sender) smtp.mail=plop@gmail.com; dkim=pass header.i=plop@gmail.com, Return_HYPHEN_Path=, MIME_HYPHEN_Version=1.0, Message_HYPHEN_ID=< CAJeF+7TeG9E9-oSuCH+oZE+gUZniJVvM7pFCyNtQp-yr9y2aAQ@mail.gmail.com>, Content_HYPHEN_Type=multipart/alternative; boundary=20cf3074b14c4bc59604b639a0c8, Date=Wed, 11 Jan 2012 06:08:45 +0100, Subject=mail de test, To=testest.activemq@gmail.com, Delivered_HYPHEN_To=testest@gmail.com, From=Plop , DKIM_HYPHEN_Signature=v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=tDZGQ2Ys4OH/ioEN81r3vKi/8ccflSm+mOzJ5phR/eU=; b=iWW9RdyTl6EL7q4vnHtrOlBGEhmDgTjdoed4bdxEPdTboLeNQGPsmR5BIDKT1ZxOse oQHpVKxt8PJFPP7MkOlyveumuiiXo+VJr3Z8rso2ZRJyEzU5CIOfXnv89Mvk1Z50UfGB YyuRbavP8ZYd47aGZHlKIzEhjwGLfRDDSycwk=, Received_HYPHEN_SPF=pass ( google.com: domain of plop@gmail.com designates 10.224.31.202 as permitted sender) client-ip=10.224.31.202;}, 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 nicolas.gapaillard@gmail.com --20cf3074b14cad048604b63afef8--