Dashboard > Wonder > Home > Best Practices
  Wonder Log In View a printable version of the current page.  
  Best Practices
Added by David Avendasora, last edited by David Avendasora on Apr 18, 2008  (view change)
Labels: 
(None)

User-Specific Properties Files

You can have any number of Properties.username files in your project's Resources directory in-addition-to the default Properties file. These Properties.username files will automatically load based on which user is launching the application. This allows you to have custom logging, email, database, etc configuration settings for each developer.

This capability can also be (ab)used in combinination with the Launch parameter -Duser.name to specify Production vs Staging/Development properties. For example: a launch parameter of -Duser.name=deployment will cause Properties.deployment to be read when the application in launched.

This can be very useful for automatically changing database connection configurations based on whether or not an application is being run in Production or Development.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators