• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Best practice for application configuration

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Our EJB application has a number of configuration options that the application installer/administrator and setup. Currently this is done by editing a properties file (on the server file system, external to the EAR). The installer sets a JVM property ("-Dourapp.configfile=xxxx") to the location of the file. We read that properties file and it control various options in our application.

This of course violates the J2EE specs (our EJBs should not be doing file I/O on the server). This also does not work in a clustered environment where the nodes in the cluster may not have access to a shared file system, and the installer should not have to copy the properties file to every node.

So the question is, what is the best J2EE-compliant mechanism for application configuration data? If the configuration data is changed while the application is running, is there a (J2EE) way for the application to be notified?

Thanks for any ideas...
-Mark
 
Look ma! I'm selling my stuff!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic