Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 A5E0A83AD for ; Mon, 22 Aug 2011 08:19:07 +0000 (UTC) Received: (qmail 2584 invoked by uid 500); 22 Aug 2011 08:19:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 2149 invoked by uid 500); 22 Aug 2011 08:18:57 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 2137 invoked by uid 99); 22 Aug 2011 08:18:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 08:18:49 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gx0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 08:18:43 +0000 Received: by gxk26 with SMTP id 26so3743928gxk.32 for ; Mon, 22 Aug 2011 01:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=iMM1HXKA6HLZpHvL0Ypc2jzKw3LdXV1UDyhvKH5utK4=; b=nzCTgDhIHYi3whj69A7xNPk5D7m6KR5A+IeEOd/MUFrOn6W+PjgnNjssWs1UGMBKqn uhKomK7+3qkQ5I4ZpjVuZQOMyvgKK7sg32xsLgoC4h2gFuOrU8o1IV8AK1w0YYJI4KTE qOBfj4gpNZ3MBlxmcuGWb3vr8puQj3yD4/uHw= Received: by 10.100.109.10 with SMTP id h10mr2003023anc.80.1314001083197; Mon, 22 Aug 2011 01:18:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.89.6 with HTTP; Mon, 22 Aug 2011 01:17:43 -0700 (PDT) In-Reply-To: <1313996671180-4722377.post@n5.nabble.com> References: <1313996671180-4722377.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 22 Aug 2011 10:17:43 +0200 Message-ID: Subject: Re: Teach a man to fish .. To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi On Mon, Aug 22, 2011 at 9:04 AM, julian+activemq@dotr.com wrote: > I have been trying all weekend now to achieve what I thought would be a > simple task. > > I want to poll my gmail account, retrieve any unread messages (leaving th= em > on the account) and send the message to an ActiveMQ queue. > > I have got so far as to get camel to attempt to load the smtps "thing", b= ut > the log complains about > For polling an existing mail account you would need to use a mail protocol for polling mails which would be either one of - pop3 - imap The stmp is for *sending* emails only. So change the endpoint uri to use for example imap > " Failed to create route route1: ..... [snip] ... =A0due to: No component > found with scheme: smtps" > > I have run into a wall so many times this weekend that I am about to give > up. :( > > All morning I have read up on how to install components (I still have no > idea) and worst still, where the bloody hell do I a) get the component, b= ) > install it and c) get it to load into camel ? > > I *think* that I need camel-mail.jar > Yes when you use a Camel component you need to install the JARs needed. On this page http://camel.apache.org/components There is a artifactId listed next to the component name. So for mail it says: camel-mail. Likewise on the documentation page for the component in question, we often have a Maven dependency listed http://camel.apache.org/mail.html org.apache.camel camel-mail x.x.x Are you running Apache ActiveMQ standalone and want to use the embedded Camel inside it? If so you would need to copy camel-mail JAR to the activemq/lib directory (eg the lib directory in the AMQ installation). There is already some Camel JARs in there. On top of that you would also need the Mail JAR javax.mail:mail:jar:1.4.4:compile You can download that JAR from the maven repo http://repo2.maven.org/maven2/javax/mail/mail/1.4.4/ > Please, please, I am begging someone to show me step by step what is > required and how to achieve it in order for me to understand the steps an= d > processes required. > > thanks , from one very frustrated old man ;) > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Teach-a-m= an-to-fish-tp4722377p4722377.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/