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

Pages: 1
mortenhattesen
Unregistered




Consider using Jakarta Commons - Configuration
      #38875 - 10/08/06 05:50 AM

Consider using Jakarta Commons Configuration http://jakarta.apache.org/commons/configuration/ which provides a standardized interface, with typed values (integer/double/arrays...), allowing you to provide the configuration using (a mixture of):
* Properties files
* XML documents
* Property list files (.plist)
* JNDI
* JDBC Datasource
* System properties
* Applet parameters
* Servlet parameters

Using the following file-loading strategies:
* If the combination from base path and file name is a full URL that points to an existing file, this URL will be used to load the file.
* If the combination from base path and file name is an absolute file name and this file exists, it will be loaded.
* If the combination from base path and file name is a relative file path that points to an existing file, this file will be loaded.
* If a file with the specified name exists in the user's home directory, this file will be loaded.
* Otherwise the file name is interpreted as a resource name, and it is checked whether the data file can be loaded from the classpath.

Check it out!


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Consider using Jakarta Commons - Configuration [Re: mortenhattesen]
      #40052 - 11/01/06 08:41 AM

Yes, I use Jakarta Commons package, and it is a well organized easy to use for loading property files and other configuration files.

Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Consider using Jakarta Commons - Configuration [Re: mortenhattesen]
      #40538 - 11/14/06 04:10 AM

Jakarta Commons - Configuration
seems comfortable
- but has a lot of dependencies.


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Consider using Jakarta Commons - Configuration [Re: mortenhattesen]
      #50265 - 07/11/07 09:17 AM

I am planning to use this.Kinldy let me know what are the dependencies.

Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Consider using Jakarta Commons - Configuration [Re: mortenhattesen]
      #55782 - 10/12/07 03:58 PM

It's all listed here

http://commons.apache.org/configuration/dependencies.html


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



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

Moderator:   

Print Topic

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

Rating:
Topic views: 18279

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5