JDBC Tutorial

Developing flexible app

Developing flexible jdbc applications:

When we write any jdbc application, we use to specify the specific details regarding driver names, URL, which database we are using and table names. When we want to change the jdbc application for some other details regarding driver name, URL, etc., we must change into java program and we need to compile which leads to higher maintenance activities.

In order to avoid recompiling a jdbc application we must develop a flexible jdbc application with the help of resource bundle file or properties file.

A resource bundle file or properties file is one which contains the data in the form of (key, value) pair.

For example:

<file name>.<rbf/prop>

Note:After creating resource bundle file that file must be stored into current working directory.