Entering content frame

Procedure documentation Creating a Reference in the web.xml File Locate the document in its SAP Library structure

Use

Create a reference from the EJB project to the MailSession resource in the WEB-INF/web.xml

Procedure

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

 

 

Leaving content frame