Bear Bibeault wrote:Open and close connections as quickly as possible.
Best practice is also to use a container-managed connection pool.
I am badly explained. The connection is opened and closed into every method of DbManager (my class focused on the CRUD operations).
Considering that i instantiate the DbManager inside the MainController , DbManager should be the same instance shared with the other two controllers, or each controller should be have his instance of DbManager ?