3

Are there any "Alert" (or Notification) frameworks in Java out there.

In my web application I would like our users to be able to configure which (of the available alerts) they would like to receive and in which (e.g via email) form.

As a simple example, a user chooses to be alerted only via email when his/her order has been shipped.

a-sak
  • 1,320
  • 6
  • 21
  • 33

2 Answers2

4

Nothing comes by default in Java/J2EE. However, it does NOT take much to implement. Your order processor and other processors can have listeners /observers on the processORder method. These can process the email/other notifications.

You can even have a jms message coming out of the OrderProcessor with some info about the particular notification and you send an email/otherAlert to the user after consuming the JMS message.

user229044
  • 232,980
  • 40
  • 330
  • 338
anjanb
  • 12,999
  • 18
  • 77
  • 106
0

We can use JMS for sending notifications to users. JMS producers puts the alerts in queue and producers will process the message and send to notifications to user via. email / sms and/or store in database to show the messages in user dashboards.

ikvenu2000
  • 331
  • 1
  • 3
  • 13