Specifying the Mail Session
When you want to use the Simple Email Deliverer in a Composite Application Framework application, you must update the web.xml file to get a JavaMail session for sending messages.
To update the web.xml file for sending email messages
1. In the UI Development perspective, click the Navigation view of the opened Composite Application Framework application that uses the Simple Email Deliverer.
2. In the Navigation view, expand the WebContent > WEB-INF folder, and then double-click the web.xml file.
3. In the design canvas, click the Source tab to add <resource-env-ref> element in the web.xml file.
In the web.xml file, add the following:
<resource-env-ref>
<resource-env-ref-name>mail/Session</resource-env-ref-name>
<resource-env-ref-type>javax.mail.Session</resource-env-ref-type>
</resource-env-ref>
4. On theweb.xml tab, click Close , and then click Yes to save the changes to the web.xml file.