When my bean receives a big chunk of text, the bean needs to proces the data a bit before storing it. Specifically, it needs to find some key words in the document and classify the document. I have a hashtable containing the keywords and the classifications. I want to initialize this table once and use it for every new or updated document. A static hashtable fits perfectly here.
As an alternative, I could store this data in a table and pull it out via jdbc
to do the processing. Seems a lot slower, but it looks like there isn't much choice.
I don't want to hard code the data cuz I hope to re-use this code for future projects.