continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r479643 - in /maven/continuum/trunk: continuum-plexus-runtime/src/conf/plexus.xml continuum-webapp/src/main/resources/META-INF/plexus/application.xml
Date Mon, 27 Nov 2006 14:48:38 GMT
Author: evenisse
Date: Mon Nov 27 06:48:37 2006
New Revision: 479643

URL: http://svn.apache.org/viewvc?view=rev&rev=479643
Log:
[CONTINUUM-965] Define mail paramaters with jndi

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

Modified: maven/continuum/trunk/continuum-plexus-runtime/src/conf/plexus.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-plexus-runtime/src/conf/plexus.xml?view=diff&rev=479643&r1=479642&r2=479643
==============================================================================
--- maven/continuum/trunk/continuum-plexus-runtime/src/conf/plexus.xml (original)
+++ maven/continuum/trunk/continuum-plexus-runtime/src/conf/plexus.xml Mon Nov 27 06:48:37
2006
@@ -15,6 +15,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/continuum/trunk/continuum-webapp/src/main/resources/META-INF/plexus/application.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/resources/META-INF/plexus/application.xml?view=diff&rev=479643&r1=479642&r2=479643
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/META-INF/plexus/application.xml
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/META-INF/plexus/application.xml
Mon Nov 27 06:48:37 2006
@@ -96,16 +96,9 @@
 
     <component>
       <role>org.codehaus.plexus.mailsender.MailSender</role>
-      <implementation>org.codehaus.plexus.mailsender.javamail.JavamailMailSender</implementation>
+      <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation>
       <configuration>
-        <smtp-host>localhost</smtp-host>
-        <smtp-port>25</smtp-port>
-        <sslProvider>com.sun.net.ssl.internal.ssl.Provider</sslProvider>
-        <!--
-        <username>mylogin</username>
-        <password>mypassword</password>
-        <sslMode>true</sslMode>
-        -->
+        <jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
       </configuration>
     </component>
 



Mime
View raw message