hi all- we have a need in our J2EE application to use soft-coded properties (e.g database name etc.) ... what is the best way to do this: JNDI or A ResourceBundle? Oh, some of these are used by EJBs (most of them in fact) thanks, Max
posted 14 years ago
JNDI is nice for hot update of properties and replication across a cluster -though then you need a replicated directory service. prop files are simple, but limited in what they can describe. XML files are in-between; they have more power but are harder to work with. The java 1.4 preferences API should nominally hide how the preferences are stored, so you could code for anything, but I aint used it yet to be sure.