| How to create a JNDI email connection in Tomcat for use in Audium applications |
| Categories: Audium Call Services 3.4.x and 3.5, Audium OpenSDK |
| Article ID: | 197 |
| Last updated: | November 02, 2006 |
| User Opinions |
|
No users have voted.
|
|
Thank you for rating this answer.
|
SUMMARY
This article explains how to create a new JNDI email connection in Tomcat. These instructions are useful when you would like to use the built-in Email element, or create some custom code that accesses email functionality through JNDI.
SYMPTOMS
Developer would like to create a new JNDI email connection in Tomcat.
RESOLUTION
1) Copy mail.jar (from java.sun.com/products/javamail/downloads/index.html" target=_blank>the javax/mail package) and activation.jar (from the JavaBeans Activation Framework) into TOMCAT/common/lib. You should be able to place these JAR files anywhere in your classpath if this is not an appropriate location for your setup.
2) Add a Mail Session under the /Audium context in Tomcat. It is highly recommended that the web-based interface be used for this, since there are only two text fields to fill out, rather than an XML file. You can access the web interface via
http://APP_SERVER_IP:PORT/admin
Expand the "Host (hostname)" branch, and then the "Context (/Audium)" branch. Click on "Mail Sessions", you can add the session here.
3) The session should be named "mail/ANY_NAME_YOU_CHOOSE". For example, one might choose "mail/AudiumMailSession".
4) Be sure to click on "Commit Changes" to save this new mail session after it has been added.
5) In Audium Builder for Studio, edit the configuration of the Email element in question. Set the JNDI name to the "ANY_NAME_YOU_CHOOSE" portion of what you entered in the Tomcat settings. In the example above, one would enter "AudiumMailSession". Note that you should not include the "mail/" portion here.
|
| Visitor Comments |
|
No visitor comments posted. Post a comment
|
| Attachments |
|
No attachments were found.
|