You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/05/05 14:51:12 UTC

[jira] [Assigned] (CAMEL-9943) Expose mail session as a URI option for camel-mail endpoints

     [ https://issues.apache.org/jira/browse/CAMEL-9943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-9943:
----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.17.2, 2.18.0
>
>
> 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)