-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
Compatibility/Configuration
GNU JavaMail is a free implementation of the JavaMail API specification, version 1.3.
We want to use it as a replacement for Sun's mail.jar
The sources can be downloaded from here:
http://www.gnu.org/software/classpathx/javamail/javamail.html
Issues with replacement by classpathx-mail:
jbossws must be patched to use gnu-handlers instead of sun-handlers
+//import com.sun.mail.handlers.multipart_mixed;
+import gnu.mail.handler.MultipartMixed;
+//import com.sun.mail.handlers.text_html;
+import gnu.mail.handler.TextHtml;
+//import com.sun.mail.handlers.text_plain;
+import gnu.mail.handler.TextPlain;
testsuite/src/main/org/jboss/test/classloader/resource/ResourceTest.java
must be patched, because it refers to javamail.default.address.map and javamail.default.providers while in classpathx-mail these are named javamail.address.map and javamail.providers in classpathx-mail This change isn't essential to javamail; those files (+javamail.jar) were chosen because they were supposed to be always there. The real purpose of ResouceTest.java is to check access to resouces, so any adequate resources could be the test objects. But the resource test is executed very often and in different contexts. Therefore the adjustment is important for testsuite.