archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r479679 - in /maven/archiva/trunk: archiva-plexus-runtime/src/conf/plexus.xml archiva-webapp/src/main/resources/META-INF/plexus/application.xml
Date Mon, 27 Nov 2006 16:24:09 GMT
Author: evenisse
Date: Mon Nov 27 08:24:08 2006
New Revision: 479679

URL: http://svn.apache.org/viewvc?view=rev&rev=479679
Log:
Use jndi to configure mail session

Modified:
    maven/archiva/trunk/archiva-plexus-runtime/src/conf/plexus.xml
    maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml

Modified: maven/archiva/trunk/archiva-plexus-runtime/src/conf/plexus.xml
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-plexus-runtime/src/conf/plexus.xml?view=diff&rev=479679&r1=479678&r2=479679
==============================================================================
--- maven/archiva/trunk/archiva-plexus-runtime/src/conf/plexus.xml (original)
+++ maven/archiva/trunk/archiva-plexus-runtime/src/conf/plexus.xml Mon Nov 27 08:24:08 2006
@@ -29,6 +29,26 @@
       <role-hint>dataSources</role-hint>
       <configuration>
         <resources>
+          <!------------------>
+          <!-- Mail Session -->
+          <!------------------>
+          <resource>
+            <name>mail/Session</name>
+            <type>javax.mail.Session</type>
+            <properties>
+              <property>
+                <name>mail.smtp.host</name>
+                <value>localhost</value>
+              </property>
+              <property>
+                <name>mail.smtp.port</name>
+                <value>25</value>
+              </property>
+            </properties>
+          </resource>
+          <!------------------>
+          <!-- Datasources  -->
+          <!------------------>
           <resource>
             <name>jdbc/users</name>
             <type>javax.sql.DataSource</type>

Modified: maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml?view=diff&rev=479679&r1=479678&r2=479679
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
(original)
+++ maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
Mon Nov 27 08:24:08 2006
@@ -30,6 +30,14 @@
       </configuration>
     </component>
 
+    <component>
+      <role>org.codehaus.plexus.mailsender.MailSender</role>
+      <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation>
+      <configuration>
+        <jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
+      </configuration>
+    </component>
+
     <!--
      | Logger manager
      -->



Mime
View raw message