The Bamboo start up script can be customised to setup JNDI resources
Follow this guide to setup Bamboo to use the jetty.xml file
You will also need to change the jetty.xml file under webapp/WEB-INF/classes by change the context path from /bamboo to /. Example of this is below:
If you are using Bamboo 1.2.4 (or earlier):
If you are using Bamboo 2.0:
To set up the JNDI mail session, you will also need to uncomment and modify the section of this jetty.xml shown below. You will need to replace the values inside the <Arg> tags with appropriate values (username, password, host, from address).
In Bamboo 1.2.4 and earlier:
In Bamboo 2.0:
If you are experiencing class loading problems with your mail session. Try uncommenting the following line in the web applications context (2.0 only):







2 Comments
Hide/Show CommentsDec 10, 2008
Paudi Moriarty
To get Bamboo to send mail through smtp.gmail.com, I had to add the following over and above the steps in this guide:
Enable jetty-plus configurations:
Modify the WebAppContext handler, setting configurationClasses to plusConfig:
Allow the application to see the JNDI resource:
Dec 07, 2009
Anonymous
Successfully using Google Mail over SSL with JNDI resource "GoogleMail"
<New id="resourceID">
<Arg>GoogleMail</Arg>
<Arg>
<New>
<Set name="user">user@example.com</Set>
<Set name="password">xxx</Set>
<Set name="properties">
<New>
<Put name="mail.smtp.host">smtp.googlemail.com</Put>
<Put name="mail.smtp.auth">true</Put>
<Put name="mail.smtp.port">465</Put>
<Put name="mail.smtp.user">user@example.com</Put>
<Put name="mail.smtp.starttls.enable">true</Put>
<Put name="mail.from">user@example.com</Put>
<Put name="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</Put>
</New>
</Set>
</New>
</Arg>
</New>
Add Comment