project with multi-tier achitecture in java