Mar 1st, 2006, 02:46 PM
Please, show me the best way ...
I need your advice for this scenario.
After user registration, the application must send a confirm email to the user.
The client call a remote RegistrationEJB, that calls, locally, a MailingEJB for sending email.
For managing possible error in sending email (smtp server down, for example) I would like to manage an asynchronous call to MailingEJB.
It is possible to achieve this inside container? Which is the best way, MDB, JMS??
I'm asking this because I'm a newbie in JMS and MDB.
Another solution, but maybe not the most elegant, would be manage this scenario with a table into my DB where I store failed emails, and a scheduled bean that sometimes checks this table and try again sending emails.
I would like to avoid this last solution and manage this scenario with message driven beans or JMS, but I dont know if this is possible inside container, and, mostly, I dont know how
I googled I little, but I have been not able to find some complete examples for using Spring with MDB.
Can you give me some advice ?
Thanks a lot.
Mar 1st, 2006, 02:50 PM
You might consider looking at Mule. Its a messaging framework to help you create workflows like this.