On Jan 16, 2004, at 7:58 PM, Andrew Oliver wrote:


How are you receiving the email? Maybe we can put this together with mail
services.



My current implementation uses an MBean with a pollMail method. This method is called by a Scheduler.


When called, the pollMail method looks up the Mail session (configured in the mail-service.xml file) then uses javamail to connect to the configured mail server and attempts to process anything it finds in the INBOX (or whatever folder is configured). If the message is a SOAP message, it sets up a message context and feeds it to the AxisEngine. If it finds a message it doesn't understand, it simply deletes it (assuming it was an attempt to sell the server phallus enhancing drugs or some such thing)

This method was just my simple minded attempt to wire JBoss.net to JavaMail, so if there is a way to use mail services, that would be great. Where should I be looking?

-jason



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to