This illustration shows the session resource manager mapping relationship between an EJB Deployment Descriptor and an OC4J-Specific Deployment Descriptor.

The box with the EJB Deployment Descriptor contains the following sample code:

    <enterprise-beans>
    .
    <resource-ref>
       <res-ref-name>mail/TestMailSession</res-ref-name>
       <res-type>javax.mail.Session</res-type>
       <res-auth>Application</res-auth>
    </resource-ref>
    </enterprise-beans>

The box with the OC4J-Specific Deployment Descriptor contains the following sample code:

    resource-ref-mapping
       name="mail/TestMailSession"
          location="/test/myMailSession"/>

There is an arrow from the bold line in the EJB Deployment Descriptor example to the first bold line in the OC4J-Specific Deployment Descriptor example.