I am working on an application which I did not code that runs under JBoss 3.2.x and I am having very some very strange experiences with it.
The application at several points sends Email. This sending of email is handled by a stateless session EJB that was written here but not by me. Basically the bean is passed a value object containing all relevant data to the email, to addresses, from addresses, attachments, etc. It puts all this data into a MimeMessage object, and then, when that is done, sends it off by calling Transport.send() on the MimeMessage. It all mostly works, in spite of the fact that we have never configured our mail-service.xml in any way. I suppose that had we relied on the config, some of our code might have been simplified and various addresses could have been defaulted in. The problem comes in here. Email messages within our company's domain which are validly formatted but actually non-existent addresses, a SendFailedException is thrown with a message of User unknown at javax.mail.Transport.send0(Transport.java:218) Now what makes this really wierd, is that our code has a catch block to catch this exception, log it, and then wrap it in an app-specific exception and throw that wrapped exception. This is percolating out to our presentation layer, but what is shown there is NOT the wrapper exception we threw, but the SendFailedException all over again. Where the heck did THAT come from. We caught that exception. It's almost as if Transport is throwing more exceptions asynchronously. Has anyone ever seen behavior like this and is there anything we can do to correct it, perhaps with changes to mail-service.xml? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865315#3865315 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865315 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
