Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 65397 invoked from network); 18 Oct 2007 12:09:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 12:09:17 -0000 Received: (qmail 26247 invoked by uid 500); 18 Oct 2007 12:09:05 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 26182 invoked by uid 500); 18 Oct 2007 12:09:05 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 26173 invoked by uid 99); 18 Oct 2007 12:09:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 05:09:05 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 12:09:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IiUBC-0007zU-AT for camel-user@activemq.apache.org; Thu, 18 Oct 2007 05:08:46 -0700 Message-ID: <13272204.post@talk.nabble.com> Date: Thu, 18 Oct 2007 05:08:46 -0700 (PDT) From: bgoetzmann To: camel-user@activemq.apache.org Subject: Re: My test scheme In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bgoetzmann@sophia.symag.com References: <13236630.post@talk.nabble.com> <13249326.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi James, It works now with my scheme "test" and the URI "test://bgoetzmann@srvmail?password=mdp#bgoetzmann@test.com". However, with the URI ""test://bgoetzmann@srvmail?password=mdp" (without indicate the destination) and having the code: mail.getConfiguration().setDestination("bgoetzmann@test.com"); I receive no e-mails, as if destination was not take in account. Is it normal? Thank you James. Bertrand. James.Strachan wrote: > > Whoops - I think I got an if statement wrong :) Have just tried > patching trunk - wanna try again? > > On 17/10/2007, bgoetzmann wrote: >> >> Thank you James, >> >> I rebuild Camel from the latest source code, and put the statement: >> mail.getConfiguration().setIgnoreUriScheme(true) >> >> but I continue to have the same exception. >> >> I will look at source code ;-) >> >> Bertrand. >> >> >> James.Strachan wrote: >> > >> > On 16/10/2007, bgoetzmann wrote: >> >> >> >> Hello, >> >> >> >> In order to better understand Camel, I create a MailComponent instance >> >> that >> >> I customize for the protocol and the destination. Then, I register it >> >> into >> >> the Camel context with the name "test". >> >> >> >> So in my Camel route I use the URI >> >> "test://bgoetzmann@srvmail?password=motdepasse" on which I send >> messages >> >> (see the code bellow), but I get the following exception: >> >> >> >> Caused by: javax.mail.NoSuchProviderException: No provider for test >> >> at javax.mail.Session.getProvider(Session.java:455) >> >> >> >> I thought that my customized component would be able to handle >> incoming >> >> message and send emails! >> >> Any idea on what can be wrong on my approach? >> > >> > The Mail component is trying to be too clever - its assuming the >> > scheme you use in the URI is the actual mail protocol to use. >> > >> > I've just patched trunk so you can do >> > >> > mail.getConfiguration().setIgnoreUriScheme(true) >> > >> > to ignore the scheme of the URI and just use SMTP in your example >> > >> > -- >> > James >> > ------- >> > http://macstrac.blogspot.com/ >> > >> > Open Source SOA >> > http://open.iona.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/My-test-scheme-tf4635115s22882.html#a13249326 >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source SOA > http://open.iona.com > > -- View this message in context: http://www.nabble.com/My-test-scheme-tf4635115s22882.html#a13272204 Sent from the Camel - Users mailing list archive at Nabble.com.