This topic has not yet been written. The content below is from the topic description.
Example 6.13. ENC resource-ref access sample code fragment Context initCtx = new InitialContext(); javax.mail.Session s = (javax.mail.Session) initCtx.lookup("java:comp/env/mail/DefaultMail");