Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properties Files vs. JNDI?

 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Steve Loughran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic