directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r160837 - directory/naming/trunk/naming-config/src/test/mail.xml
Date Mon, 11 Apr 2005 05:59:17 GMT
Author: psteitz
Date: Sun Apr 10 22:59:15 2005
New Revision: 160837

URL: http://svn.apache.org/viewcvs?view=rev&rev=160837
Log:
Initial commit.

Added:
    directory/naming/trunk/naming-config/src/test/mail.xml

Added: directory/naming/trunk/naming-config/src/test/mail.xml
URL: http://svn.apache.org/viewcvs/directory/naming/trunk/naming-config/src/test/mail.xml?view=auto&rev=160837
==============================================================================
--- directory/naming/trunk/naming-config/src/test/mail.xml (added)
+++ directory/naming/trunk/naming-config/src/test/mail.xml Sun Apr 10 22:59:15 2005
@@ -0,0 +1,87 @@
+<!-- 
+       Config to test mail factories and provide example of use. Missing
+       parameter values need to be filled in using valid smtp host / user
+       information.  
+-->
+<naming>
+  <context>
+  <!-- SendMailFactory test configuration -->
+  <resource name="mail/send" auth="CONTAINER"
+           type="javax.mail.internet.MimePartDataSource">
+     <parameter>
+       <name>factory</name>
+       <value>org.apache.naming.factory.SendMailFactory</value>
+     </parameter>
+     <parameter>
+        <name>mail.smtp.host</name>
+        <!-- uncomment and replace with an outbound smpt host
+        <value>your.smtp.host</value> -->
+     </parameter>
+     <parameter>
+        <name>mail.smtp.user</name>
+       <!--  uncomment and replace with a user who can send from
+               the mail host above
+       <value>someuser</value>  -->
+     </parameter>
+     <parameter>
+       <name>mail.from</name>
+       <!--  uncomment and replace with a from address
+               acceptable for the mail host above
+       <value>someuser@some.host</value>  -->
+     </parameter>
+     <parameter><name>mail.smtp.sendpartial</name>
+       <value>true</value>
+     </parameter>
+     <parameter>
+       <name>mail.smtp.dsn.notify</name>
+       <value>FAILURE</value>
+     </parameter>
+     <parameter>
+       <name>mail.smtp.dsn.ret</name>
+       <value>FULL</value>
+     </parameter>
+    </resource>
+     
+     <!-- MailSessionFactory test configuration (unauthenticated) -->
+    <resource name="mail/smtp" auth="CONTAINER"
+           type="javax.mail.Session">
+     <parameter>
+       <name>factory</name>
+       <value>org.apache.naming.factory.MailSessionFactory</value>
+     </parameter>
+     <parameter>
+       <name>mail.smtp.host</name>
+       <!-- uncomment and replace with an outbound smpt host
+       <value>your.smtp.host</value> -->
+     </parameter>
+    </resource>
+    
+    <!-- MailSessionFactory test configuration (authenticated session) -->
+     <resource name="mail/smtp-auth" auth="CONTAINER"
+           type="javax.mail.Session">
+     <parameter>
+       <name>factory</name>
+       <value>org.apache.naming.factory.MailSessionFactory</value>
+     </parameter>
+     <parameter>
+       <name>mail.smtp.auth</name>
+       <value>true</value>
+     </parameter>
+     <parameter>
+       <name>mail.smtp.host</name>
+       <!-- uncomment and replace with an outbound smpt host
+       <value>your.smtp.host</value> -->
+     </parameter>
+     <parameter>
+       <name>mail.smtp.user</name>
+       <!-- uncomment and replace with an outbound smpt host
+       <value>your.smtp.user</value> -->
+     </parameter>
+     <parameter>
+       <name>password</name>
+       <!-- uncomment and replace with user password
+       <value>your.password</value> -->
+     </parameter>
+    </resource>
+  </context>
+</naming>  



Mime
View raw message