wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Does 3-tier always involves a browser and a web server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Does 3-tier always involves a browser and a web server?" Watch "Does 3-tier always involves a browser and a web server?" New topic
Author

Does 3-tier always involves a browser and a web server?

J Vallejo
Ranch Hand

Joined: Jan 29, 2007
Posts: 31
If this is true, does it also holds true for n-tiers, only with an additional application server component?

If this is not the case, can you set some examples of a 3-tier or an n-tier architecture that does not involve a browser and a web server?
[ October 06, 2007: Message edited by: J Vallejo ]

J Vallejo<br />SCDJWS 5, SCJP 1.5, SCBCD 1.3
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Originally posted by J Vallejo:
If this is true, does it also holds true for n-tiers, only with an additional application server component?


I would say that it's not true. Look how Sun sees it.


[ October 07, 2007: Message edited by: Darya Akbari ]

SCJP, SCJD, SCWCD, SCBCD
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
See Application 1. It's not a browser. It could be any Swing GUI.

So you would have something like Swing GUI -> Enterprise Beans -> Database. No Browser, no Web Server and still a 3-tier application .
J Vallejo
Ranch Hand

Joined: Jan 29, 2007
Posts: 31
hmmm... interesting. Can you provide the link please.
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Search for Java EE 5 Tutorial from Sun.
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

When I look this diagram , I am always confused. The Integration tier and Resource tier is combined in this diagram. I think they should be separate.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Originally posted by Narendra Dhande:
The Integration tier and Resource tier is combined in this diagram. I think they should be separate.


Aren't both tiers one and the same?

Look how Sun mix both names when it describes the DAO Pattern here. In the diagram they call the tier, where DAO is embedded, Integration tier while in the description of DAO they call it Resource tier.
[ October 09, 2007: Message edited by: Darya Akbari ]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Darya Akbari:


Aren't both tiers one and the same?


Are DAO and Database one and the same thing???
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hello,

I think these are separate. Integration tier contain the integration services like JDBC, JMS, Connectores.

Resource tier related to actual resource like databases, Legacy systems.

Thanks
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

I think three tier is very much the idea of a client tier with an visual front end, a middle tier mitigating access to back end data, and of course, the third tier being the back end. Certainly in that regards, any stand-alone Java application interacting with middle tier technology, such as SLSBs or SFSBs, would indeed be a non-browser based 3-tier implementation.

-Cameron McKenzie
Flavio Oliva
Ranch Hand

Joined: Jan 11, 2006
Posts: 59
Am I right to say that web services should be linked to the business tier?

Here is how I implemented a web service using spring framework:

Web Front-End
Business tier - Web Services
DAO

is web service the 4th tier?


I work with the following technologies: Webwork 2.2, Xwork, iReport 0.5.2 Jasper Reports 1.1.0, JSP 2.0, CSS, Java Script, Hibernate 3.0.5, MySQL 4.1.7, Eclipse 3.1, Tomcat 5.5.9, JBoss 4.0.2. Any Doubt? ask me, denon82@msn.com
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Originally posted by ankur rathi:
Are DAO and Database one and the same thing???


No, so what
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Originally posted by Flavio Oliva:
is web service the 4th tier?


No. Your Web Service belongs into the same tier as your DAO, the Integration tier

See the Core J2EE Pattern Overview:



Do you see where the Web Service is . It's in the Integration tier. By the way no word about Resource tier.
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
To add more to the confusion, have you thought what if Client Tier and Web Tier merge into one Presentation Tier?

Making two tiers to one tier . Actually I don't know myself .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does 3-tier always involves a browser and a web server?
 
Similar Threads
3 tier design
Diff Btwn 3-Tier Arch and N-Tier arch
2 or 3 tier architecture
3 tier architecture
Three or 4 Tier?