wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes 2 tier or 3 tier design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "2 tier or 3 tier design" Watch "2 tier or 3 tier design" New topic
Author

2 tier or 3 tier design

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
Hi,

This is about the B&S assignment, but should apply to the others as well.

I am battling with either a 2 tier or 3 tier architecture. With 3 tiers, things can be easier because I can wrap lock/process/unlock all in one interface method that is exposed to client, this can save me worrying about whether the thread calling unlock() is the same one calling lock().

My assignment does not say that client must use DBMain interface. However,
it does say that

"The main architecture of the application must be a traditional client-server system."

My understanding of a traditional client-server system is 2 tiers.

In addition, the requirement also says that one of the top level features is:

"A client program with a graphical user interface that connects to the database"

So the client should connect to the DB, not a middle layer, then.

How do you read such text?
Thanks.
Yan
Matt Sheehan.
Ranch Hand

Joined: Oct 08, 2004
Posts: 63
This is a much debated topic on this forum. A long dicussion about it can be found at this thread. People have passed with the 3-tier, though including the design decribed here.

Matt
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Yan Zhou:
Hi,

This is about the B&S assignment, but should apply to the others as well.

I am battling with either a 2 tier or 3 tier architecture. With 3 tiers, things can be easier because I can wrap lock/process/unlock all in one interface method that is exposed to client, this can save me worrying about whether the thread calling unlock() is the same one calling lock().

My assignment does not say that client must use DBMain interface. However,
it does say that

"The main architecture of the application must be a traditional client-server system."

My understanding of a traditional client-server system is 2 tiers.

In addition, the requirement also says that one of the top level features is:

"A client program with a graphical user interface that connects to the database"

So the client should connect to the DB, not a middle layer, then.

How do you read such text?
Thanks.
Yan


I started with the 3 tier or "thin client" model, but switched to the 2 tier or "rich client" model because I feel that model better conforms to the project requirements.
Inuka Vincit
Ranch Hand

Joined: Aug 10, 2004
Posts: 175
I was thinking about rich client, but then the assignment talks about the program being steps towards a webbased app. Its not a requirement but if its going to be webbased... then wouldnt thin client be easily upgrade to that?


MCP (C# application dev 70-316) 860<br />SCJP 1.4 100% SCJD (URLyBird) 378<br />MAD 100% nuts
Steve Taiwan
Ranch Hand

Joined: Jul 01, 2003
Posts: 166
Dear Zhou.

I am in thin client camp.
As a j2ee designer, i think 3 tier makes more sense, dosne't it?
If I fail due to 3 thier, I will feel disappointed at sun very much.


Steve Taiwan<br />SCJP 1.2, SCJD 1.4, SCWCD 1.3, SCBCD 1.3, OCP 8i DBA, SCEA
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
Originally posted by Steve Taiwan:
Dear Zhou.

I am in thin client camp.
As a j2ee designer, i think 3 tier makes more sense, dosne't it?
If I fail due to 3 thier, I will feel disappointed at sun very much.



You won't - guaranteed.


SCJP 1.4, SCJD
 
GeeCON Prague 2014
 
subject: 2 tier or 3 tier design