Stateful Session EJBs: Beasts of Burden
Subject:   What about nearly static data?
Date:   2001-12-21 04:45:29
From:   jonathan.oconnor
I have a table containing information about the world's currencies (name, ISO code, decimal places, etc...) This information changes maybe once or twice a year. Most of my business logic needs to access this data often, so naturally I want to cache it. The $64 question is, how?

My natuarl inclination is to create a singleton class (probably static methods) which reads teh DB table at initialization or first use.

Then I just use this anywhere I need it. But what happens if I want to refresh the data? Can I use EJBs for a better solution? It should give fast access to the data.

From reading your article, it seems that I shouldn't use a SFSB to do this.

Very interested to hear your advice,
Jonathan O'Connor

1 to 1 of 1
  1. What about nearly static data?
    2005-08-10 11:44:25  palaniappan.rajaram [View]

1 to 1 of 1