Child pages
  • Best Practices-Properties Files

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Properties Files

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 can be very useful for automatically changing database connection configurations based on whether or not an application is being run in Production or Development.

Development Only Properties File

You can set properties that will only be active if the project is run in Development mode by creating a file. It will be loaded for all users.

Database Connection Properties

While the easiest place to set connection properties is in the EOModel, a better place to put them is in the Properties system, that way you can leverage the flexibility of launch-time loading of Properties so that you set connection info for each user, for development or for deployment.

Model-Specific Connection Properties

No Format
MyEOModel.URL =

MyEOModel.DBUser =

MyEOModel.DBPassword =

MyEOModel.DBDriver =
MyEOModel.DBPlugin =
MyEOModel.DBJDBCInfo =

Global Connection Properties

These settings will allow you to set the connection properties for all the EOModels in your project.