Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
2.8.4
-
None
-
None
-
All
Description
Use of "java:comp/env" does not work with JBoss JNDI.
Modify MailUtil.getJNDIMailSession() to
Context initCtx = new InitialContext();
if (jndiName.startsWith( "java:" ))
else
{ Context ctx = (Context) initCtx.lookup( JAVA_COMP_ENV ); session = (Session) ctx.lookup( jndiName ); }