> List of tutorials for developing a Fat-Client in Java


Develop the Base Class for the DataBase-ConnectionManager - Fat-Client-Development

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or linked within other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties) are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2006-09-28

As opening a connection to a database-systems takes pretty long (compared to processing other Java-code), a the class JSBS_DB_ConnectionManager is implemented.
This class establishes and maintains connections to a database.
If the connection to the database is no longer used by a Business Object (BO), then the ConnectionManager does not close the connection but marks it as unused and keeps it open for a later reuse.

Preface:

To code this class is only necessary if you decided to code the base-classes by yourself (see JS_FC01ca – Create a project for the base-classes).

If you decided to use the library with the JavaScout base-classes (see JS_FC01cb – Download the jar-file for the base-classes) you can skip this step.

Credits:

Too numerous to mention; the idea is available in dozens of versions – I refined a lot of ideas into my system.

Prerequisites:

Implement the ConnectionManager:

This step has only to be done, if you decided to code the base-classes; i.e. you did step JS_FC01ca – Create a project for the base-classes.

If you decided for JS_FC01cb – Download the jar-file for the base-classes, you may skip to Construct the ConnectionManager-class and verify if the connection was successful.

The just coded base-class is not directly used in an apllication; it is a base for the ConnectionManager which establishes and manages connections to the database.
To code the ConnectionManager-class do the following:

top.

Next Steps: