roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r547338 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
Date Thu, 14 Jun 2007 18:05:56 GMT
Author: agilliland
Date: Thu Jun 14 11:05:55 2007
New Revision: 547338

URL: http://svn.apache.org/viewvc?view=rev&rev=547338
Log:
one more fix for mail provider.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java?view=diff&rev=547338&r1=547337&r2=547338
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
Thu Jun 14 11:05:55 2007
@@ -74,8 +74,8 @@
         if (type == ConfigurationType.JNDI_NAME) {            
             String name = "java:comp/env/" + jndiName;
             try {
-                Context ctx = (Context) new InitialContext().lookup(name);
-                session = (Session)ctx.lookup(name);        
+                Context ctx = (Context) new InitialContext();
+                session = (Session) ctx.lookup(name);
             } catch (NamingException ex) {
                 throw new WebloggerException("ERROR looking up mail-session with JNDI name:
" + name);
             }



Mime
View raw message