• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Spring+RabbitMQ for reliable email send?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
Greetings...

One of our needs is when an event happens - we need to send a message
(right now email message - but FAX / SMS etc... to be added soon).
The requirement is that this mechanism should be robust... if the mail delivery failed -
it should be retried...
(Also the first cut we have now calls Java Mail API - as this is a synchronous call - things look kind of sluggish).

I started looking at the docs - and came up with the following:

1. Instead of interfacing directly with the Java mail service - hand it over to the RabbitMQ server... (send it to a queue)
(use Spring AMQP support)
2. We can write a consumer that picks up the message from the queue - this consumer would then call java mail api
(take the onus of mail delivery)
3. Not sure how we can completely address the reliability concern
4. However, the call would be asynchronous now - hence production code would be fast...

Am I doing right? - any thoughts for improvement most welcome...

Thanks guys for this wonderful forum...

--- atul
 
atul khot
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this question already answered in the docs?

I see mail support in Spring Integration -

With respect to what I wrote earlier - is this the right way to go - or is there anything already in Spring?

- thanks atul
 
reply
    Bookmark Topic Watch Topic
  • New Topic