The Artima Developer Community
Sponsored Link

Java Answers Forum
J2EE is a TWO Tier Application What DO You SAY!

1 reply on 1 page. Most recent reply: Oct 8, 2003 10:01 AM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
perry arora

Posts: 22
Nickname: perry
Registered: Sep, 2003

J2EE is a TWO Tier Application What DO You SAY! Posted: Oct 8, 2003 6:44 AM
Reply to this message Reply
Advertisement
hi friends!!...



Would like to discuss or infact need your help on a very fundamental issue..


J2ee is defined to a three tier architecture ! mostly we can include many more tiers..


But lets discuss about an archirecture or i woud say structure for an WEB based j2ee application as follows.


We have a web based client lets say Jsp's and we are using OracleiAs as our web application server....



the Oracle9iAS provides containers fro J2ee components and also provides web support for jsp and servlets .. now if data base and oracle9iAs server are running on the same machine in that case
C

Can we define this application as a Two Tier application .. as the J2ee server and the database reside on the same machine,.



I mean to say that wat are the Factora that really demarcate the boundaries of three tier.

If it is location , in that case in above case we have both of (Database and the J2ee) running on the same machine ., and also our web based client is also on tha same machine!!!!




I am developing an MIS .. and was confused on these issue!!!! i have posted to threads on this forum and I

WILL REALLY APPRECIATE IF SOME COUD GIVE ME HELP/SUGGESTION ON THE TOPICS POSTED ...


THXS A LOT


B BYE


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: J2EE is a TWO Tier Application What DO You SAY! Posted: Oct 8, 2003 10:01 AM
Reply to this message Reply
It doesn't matter how many machines are involved, you could be running a browser right on the server and that doesn't turn it into a 1-tier application. Conversely, you don't do a traceroute and claim you've written a 10-tier application.

The tiers are separation of logic into general subsystems that interact with one another through (hopefully) well-defined interfaces. So in the three-tier scheme, you have 1) the database/persistence, 2) the business logic and then 3) the presentation logic. A two-tier system would be doing database queries directly from the presentation logic (you could do this with JSP or ASP); that is, it would have a combined presentation/business logic tier.

Probably a lot of "3-tier" systems have some bleeding of one tier into another. This is not just because of sloppy design or implementation, either, although it could be. It might be a good performance enhancement. For instance, you might have stored procedures that do some business logic.

Flat View: This topic has 1 reply on 1 page
Topic: any more ideas are welcome? Previous Topic   Next Topic Topic: HELP PLEASE!!   Linked Lists

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use