incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (JSPWIKI-728) JNDI mail context lookup fails with JBoss 5.1
Date Fri, 11 May 2012 16:20:50 GMT

     [ https://issues.apache.org/jira/browse/JSPWIKI-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harry Metske closed JSPWIKI-728.
--------------------------------

    Resolution: Invalid
      Assignee: Harry Metske
    
> JNDI mail context lookup fails with JBoss 5.1
> ---------------------------------------------
>
>                 Key: JSPWIKI-728
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-728
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Servlet Container/Java compatibility
>    Affects Versions: 2.8.4
>         Environment: All
>            Reporter: Malcolm Kendall
>            Assignee: Harry Metske
>            Priority: Minor
>
> Use of "java:comp/env" does not work with JBoss JNDI.
> Modify MailUtil.getJNDIMailSession() to 
>             Context initCtx = new InitialContext();
>             if (jndiName.startsWith( "java:" ))
>             {
>                 session = (Session) initCtx.lookup( jndiName );
>             }
>             else
>             {
>                 Context ctx = (Context) initCtx.lookup( JAVA_COMP_ENV );
>                 session = (Session) ctx.lookup( jndiName );
>             }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message