making web application programming easier is possible


proprietary connection management

There are cases where is not possible to use the connection pool of JFW or a datasource controlled by the application server. In that cases you have to write you own class for get and realease the database connections.
To do that you have to implement the interface PCMConnection. Here is a simple example:

You have to implent the methods getConnection and releaseConnection. The real implementation of the methods depends of what you want to do.

To use this kind of connection management with the QueryGateway you have to set the relative parameters in the jfw.properties. In that example the value of parameter pcm_class_db3 must be mypackage.MyConnectionController.