Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mass email on separate thread  RSS feed

 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm not sure if it's proper forum for this question, so sorry in advance if not. I need to make as a part of web page the system for sending newsletters to many customers (>30k). What I need is a hint what to use to get mail sending process working independend on web app. So, user clicks "Send" and can work with other things on the page.. I tried some things but everything just waits for process to finish before navigating to next page..

Michal
 
Romeo Son
Ranch Hand
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As you suggest in the subject, you need to put that processing on a separate thread and return quickly from the method that made the request on the server.
 
Kai Witte
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

JMS would be the common thing to use if you have a JavaEE webapp. If it uses EJB already you could use a message-driven EJB as the message receiver.

Kai
 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok guys, thanks for replies. It uses EJB, so let's with message driven beans
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!