event notification question

i'm trying to keep a static list of data for clients

to build a dropdown from. but what i want is for

it to update itself when the database is updated

(in this case the update to these tables are done

thru ejb)i like to use events and listeners.

can this be done? how do u do it?

thanks in advance.

[358 byte] By [m_key1] at [2007-9-26 1:37:19]
«« jsp
»» Java & Cocoon
# 1

The way to go to solve this kind of problem is usually to apply a model-view-controller pattern on your design:

http://java.sun.com/j2ee/blueprints/design_patterns/model_view_controller/index.html

To preserve the data in a static manner, you could concider to store the data in a singleton (another pattern). Anyone have a link to an online pattern catalogue with a singleton desription?

DanielBakkelund at 2007-6-29 2:23:54 > top of Java-index,Core,Core APIs...