An
updated version with a complete introduction article PiggyBank is
available at JAX Magazine.
PiggyBank is a very easy understandable example, but you can find
all instances needed to make true J2EE-Enterprise applications. So
we have constructed the presentation, business and data layer and
via web client or swing client an access to the application is possible.
You can use the example without other utilities. Download the archive
with the extended libraries (ext-libs), unpack and start it. The readme.txt
file gives you a helper by the hand.
The layer model of the PiggyBank example:
= | = | = | |||||
Presentation | Specifi- cation |
Implementation | Connec- tion |
Persistance | |||
Enhydra | JOnAs | JDBC2 | hsqlDB | ||||
Swing | JBoss | mySQL | |||||
... | ... | ... |
The UML model showes the business logic used by the PiggyBank business
tier:
Specification Interface: |
||||||||||
Business Class: | ||||||||||
Home Interface: | ||||||||||
Object Interface: | ||||||||||
PK Class: | ||||||||||
Exception Class: | ||||||||||
Use case diagramm: |