Java Alert Framework

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.

Asked by: Adrian142 | Posted: 21-01-2022

Answer 1

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.

Answered by: Audrey957 | Posted: 22-02-2022

Answer 2

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.

Answered by: Miller318 | Posted: 22-02-2022

Similar questions

jsp - Does it make sense to use a framework for a simple java web app?

I've done lots of java web development using jsps and servlets, and I have found this approach to be straightforward and flexible. Some of the groundwork involved though - such as managing database connections - is rather tedious, and it takes a fair amount of work just to get a new web app off the ground. I'm therefore considering using a framework for the first time, but my impression of frameworks is that they...

Is there a log4j or commons logging extension or other logging framework that is designed for Java 5 or higher?

Java 5 has introduced many features that can be make logging statements less cluttering, such as variable number of arguments and printf. That can alleviate all the message building code that happens when something is logged, as well as the surrounding if. For example, instead of writing: if (log.isDebugEnabled() { log.debug("User id: "+uid+", Request id:" + rid +", Client IP: "...

java - What DI/IoC framework should I learn next?

Closed. This question is opinion-based. It is not c...

java - Spring Framework

What is Spring Framework? What's its contribution to Hibernate?

java - Possible to port legacy servlet to framework one component at a time?

I have heard that you can run an ASP.NET application and ASP.NET mvc application side by side so that you can port existing code over one piece at a time. I was wondering if you could do this with a java framework? I have a legacy servlet application that I am currently in the process of refactoring. I am thinking about turning it into a jsp application incrementally as this is relatively easy to accomplish ( can c...

http - Framework for Java RPC server

Closed. This question does not meet Stack Overflow guid...

Is there Java library or framework for accessing Serial ports?

java - Which framework should I choose - Seam, Wicket, JSF or GWT?

java - Is it possible to use a web framework but not be dependant on that framework?

I am investigating the use of web frameworks with my Java web-app. My basic requirements are pretty much easy maintainability, testability and no repetition. I have explored writing my own MVC-type app using some sort of front controller pattern and JSP's for the views. The benefit of this is that I have complete control of all aspects of my web-app and if I design it properly it should not be hard to move it over ...

security - A Java Plugin Framework that supports JARs

More specifically, is there any Java plugin frameworks have all of the below features: Support for multiple JAR files JARs can be signed and/or sealed Can perform a license check for each JAR prior to instantiation Can load multiple JARs using multiple threads

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)