Best approach to store Application Configuration

Jerry Pereira <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CA+AtUcU_J2bue6P3bR9C3P=8zODJwtiyiya0Qy6hwq4kvuu0QA@mail.gmail.com>
Hi All,

I am new to mod_perl (a java developer). I would like to know the best
approach to store and retrieve Applicaiton configurations that is accessible
to all packages in my mod_perl application.

My application configuration includes - Database details, Template mapping,
LDAP configuration details etc. I would like my to load all these
configuratoins when my application starts and then on, i should be able to
access these configuration from anywhere.

For Example:
my $dbDetails = ConfigUtil->getDBDetails(); //returns reference to hash
my dbUser = dbDetails->user;

I belive PerlSetVar only allows strings variables. I would like to get some
suggestions on how configuration management in mod_perl applications.

Thanks,
Jerry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.