camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bgoetzmann <bgoetzm...@sophia.symag.com>
Subject Re: My test scheme
Date Fri, 26 Oct 2007 14:22:17 GMT

Hello James,

Starting some test with the new 1.2.0 version, I've seen that the
MailConfiguration class doesn't have the the ignoreUriScheme bean property!


James.Strachan wrote:
> 
> On 16/10/2007, bgoetzmann <bgoetzmann@sophia.symag.com> 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#a13428215
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message