This illustration shows an example of the Oracle-specific deployment descriptor's use of the <resource-ref-mapping> element when used for the mail Session object, as follows:
<mappings>
<resource-ref-mapping>
<res-ref-name>mail/testMailSession</res-ref-name>
<jndi-name>test/myMailSession</jndi-name>
</resource-ref-mapping>
</mappings