!--a11y-->
Creating a Reference in the web.xml
File 
Create a reference from the EJB project to the MailSession resource in the WEB-INF/web.xml
Choose WebInf ® web.xml. Choose the Sourcetab and add the following code right before the </web-app> tag:
<welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> <resource-ref> <description>Reference to mail resource</description> <res-ref-name>mail/MailSession</res-ref-name> <res-type>javax.mail.Session</res-type> <res-auth>Container</res-auth> </resource-ref> <ejb-local-ref> <ejb-ref-name>SendMail</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local-home>com.sap.engine.examples.ejb.javamail.SendMailLocalHome</local-home> <local>com.sap.engine.examples.ejb.javamail.SendMailLocal</local> <ejb-link>SendMail</ejb-link> </ejb-local-ref> |
When you have finished, continue with Creating an Assembly Project
