EJB programming & troubleshooting: sending emails using EJB3
Hi all, please can anyone tell me how to use EJB3 to send emails??! thnx alot
- Posted by: Yasmeen Mostafa
- Posted on: December 04 2007 08:23 EST
I would put emails in a JMS Queue and have an MDB to use Java Mail API to send the emails.
Use EJB for temperory processing(storing of mail data till connection gets created etc.) and use Java Mail API for sending mails