Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 544907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:42:17+00:00 2026-05-13T10:42:17+00:00

I have a fully implemented DAO and all my beans inherit an Entity object.

  • 0

I have a fully implemented DAO and all my beans inherit an Entity object.
Now, I want to create a client notification system whereby, when a user creates/updates/delete an entity to/from a persistence storage, a notification is automatically sent to the client via email.

I have a DAO manager that uses a Factory Pattern to return to me a manager of the DAO based on the entity type.

e.g EntityManager manager = EntityManagerFactory.createEntityManager(Product.class);

each manager has a create(), remove(), update() method….

My first idea is to have all my entity managers inherit an Observer interface and after the function calls (create, remove, update, etc.) a notification is sent.

Is that a wise idea? If not, what can I do in order to send a notification to client?

I’m running JBoss 5 or Tomcat 6 (or both for easy deployment) and Apache Struts (though I don’t see the reason why I mentioned it).

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:42:17+00:00Added an answer on May 13, 2026 at 10:42 am

    Consider using a decorator pattern to allow your entity managers to remain blissfully unaware of who needs to be notified and how to send them emails. This approach will improve maintenance of both the existing manager code and the messaging code you intend to write, and will pay off hugely if you ever need to write new entity managers what store your entities in JCR or tranmit them via web services, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fully functional redact program written in haskell.it replaces all the words
Sometimes I want to have temporary comments fully left justified on a line (//)
I have a project which fully designed for smart phone and now, I need
I have been looking for a fully functional WSDL client generator for ruby. I
i have success fully implemented the ispeech API see http://www.ispeech.org/developers for my app to
I have a State class that is fully implemented as outlined below. I also
Based on the question ( How to create a client notification service for a
We currently have check printing fully implemented and in the field for a POS
Workers JSNI at GWT svn It looks like WebWorkers have not been fully implemented
I have two classes AbstractWorkFlow ProductionWorkFlow AbstractWorkFlow has fully implemented method executeWorkFlow which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.