I have a web app, running in glassfish v3.2, and which requires a more recent version of javamail (javamail 1.5).
What is the cleanest way to solve this dependency ?
Just stuffing the new mail.jar in the WEB-INF/lib directory of my webapp does not work. Nor does putting it in the lib/ext directory of the domain instance.
I resorted to replacing the existing javax.mail.jar file under glassfish/modules with the new version but that does not sound really clean.