Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 84785 invoked by uid 500); 4 Aug 2002 02:08:50 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 84776 invoked by uid 500); 4 Aug 2002 02:08:50 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 4 Aug 2002 02:08:49 -0000 Message-ID: <20020804020849.91579.qmail@icarus.apache.org> From: rsitze@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/attachments MimeUtils.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rsitze 2002/08/03 19:08:49 Modified: java/src/org/apache/axis/attachments MimeUtils.java Log: Returned to original state... This is counter to the strategy used for the rest of the properties, but it's odd-man-out until someone can think of something better. Revision Changes Path 1.29 +7 -2 xml-axis/java/src/org/apache/axis/attachments/MimeUtils.java Index: MimeUtils.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/MimeUtils.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- MimeUtils.java 2 Aug 2002 17:27:43 -0000 1.28 +++ MimeUtils.java 4 Aug 2002 02:08:49 -0000 1.29 @@ -215,6 +215,11 @@ /** * This routine will the multi part type and write it out to a stream. + * + *

Note that is does *NOT* pass AxisProperties + * to javax.mail.Session.getInstance, but instead + * the System properties. + *

* @param os is the output stream to write to. * @param the multipart that needs to be written to the stream. * @param mp @@ -223,12 +228,12 @@ java.io.OutputStream os, javax.mail.internet.MimeMultipart mp) { try { - AxisProperties.setProperty( + System.setProperty( "mail.smtp.host", "localhost"); // this is a bogus since we will never mail it. javax.mail.Session session = - javax.mail.Session.getInstance(AxisProperties.getProperties(), null); + javax.mail.Session.getInstance(System.getProperties(), null); javax.mail.internet.MimeMessage message = new javax.mail.internet.MimeMessage(session);