Details
-
Type:
New Feature
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: camel-mail
-
Labels:None
-
Estimated Complexity:Unknown
Description
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:
mailEndpoint.getConfiguration().setSession(myMailSession);
Or by implementing a custom JavaMailSender.
It'd be nicer if we could do something like:
from("direct:start") .to("smtp://localhost?session=#myMailSession")