[ 
https://issues.apache.org/jira/browse/CAMEL-9943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272085#comment-15272085
 ] 

ASF GitHub Bot commented on CAMEL-9943:
---------------------------------------

GitHub user jamesnetherton opened a pull request:

    https://github.com/apache/camel/pull/977

    [CAMEL-9943] Expose mail session as a URI option

    https://issues.apache.org/jira/browse/CAMEL-9943

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jamesnetherton/camel CAMEL-9943

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/977.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #977
    
----
commit 173768142032ac69580074e52320fd7d6a34ad2b
Author: James Netherton <[email protected]>
Date:   2016-05-05T08:19:09Z

    [CAMEL-9943] Expose mail session as a URI option

----


> Expose mail session as a URI option for camel-mail endpoints
> ------------------------------------------------------------
>
>                 Key: CAMEL-9943
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9943
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-mail
>            Reporter: James Netherton
>
> In a JavaEE container, mail sessions are typically managed resources that are 
> looked up from JNDI or injected as resources into objects.
> Right now the only way I see to configure a custom session for camel-mail is 
> by:
> {code}
> mailEndpoint.getConfiguration().setSession(myMailSession);
> {code}
> Or by implementing a custom JavaMailSender.
> It'd be nicer if we could do something like:
> {code}
> from("direct:start")
> .to("smtp://localhost?session=#myMailSession")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to