[ https://issues.apache.org/activemq/browse/CAMEL-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59934#action_59934 ]
Claus Ibsen commented on CAMEL-2789: ------------------------------------ You will get this kind of exception {code} java.lang.SecurityException: Access to default session denied {code} Which has also been debated a bit here http://fusesource.com/forums/message.jspa?messageID=5266 > camel-mail - Fallback to getInstance if getDefaultInstance fails on Session > as it may do in some systems > -------------------------------------------------------------------------------------------------------- > > Key: CAMEL-2789 > URL: https://issues.apache.org/activemq/browse/CAMEL-2789 > Project: Apache Camel > Issue Type: Improvement > Components: camel-mail > Affects Versions: 2.3.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.4.0 > > > MailConfiguration calls Session.getDefaultInstance which may not be allowed > on some system. In those situations you should invoke the getInstance instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.