Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958382

Anonymous
Unregistered




Multi-user, multi-properties
      04/08/06 08:29 AM

I prefer to read properties from a source defined outside the program:

java -DMY_APP_CONFIG=~/.myapprc

This way different users can have different config-files.
Even one user may have different ones.

This way the user may put his configurationfile to a place which is part of a backup.
And don't has to unjar the jar, which is discussed above.

Another search-strategie which is well established looks like this:
- is there an explicit configuration-file given? (-DMY_APP_CONFIG=~/.myapp-tiny-rc)
- if not, is a configuration-file found at the users default-place (linux: ~/.myapprc)
- if not, is a system-wide config file available (/etc/myapprc)
- if not, use build-in defaults.

This way, configuration is simple, but fine granulated control solutions are possible.

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Multi-user, multi-properties Anonymous 04/08/06 08:29 AM

Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:   



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 9782

Rate this thread

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5