I am trying to configure the Java Mail Sessions Resource in the Netty server Play config and loop up this resource using JNDI in my application. I couldnt find this in Play framework documentation nor any articles for this set up. I also looked up on the Play code, but no luck.
Play Version: 2.4.6
HTTPmail.setMailSessionFromJNDI("java:comp/env/mail/myemailserver");
Could anyone guide me to some articles or share the knowledge?
We are deploying our play applications in tomcat environment and the resources are expected to looked up from server configurations through JNDI. As a first step, I am trying to make the application work in Netty during development and move to TOMCAT later. thank you for the guidence.