Notification between J2EE components.

Posted by Pratik on Stack Overflow See other posts from Stack Overflow or by Pratik
Published on 2010-03-09T06:56:56Z Indexed on 2010/03/09 9:51 UTC
Read the original article Hit count: 589

Filed under:
|
|

Hi There!

I have a design problem .

My application has multiple J2EE components ,In simple terms one acts as a service provider(Non UI) and others are consumers(UI webapp) .

The consumer gets the configuration data from the service provider(this basically reads the data from DB) during the start up and stores it in the Cache.

The cache gets refreshed after periodic time to reflect any changes done at the database.

The Problem

Apart from the cache refresh ,I also want to notify the consumers when someone changes the DB . that configuration has been changed please reload it.

What notification mechanism's can I use to achieve this.

Thanks!

Pratik

© Stack Overflow or respective owner

Related posts about java

Related posts about design-patterns