Questions tagged [3-tier]

For issues relating to setting up and utilizing a 3-tier architecture.

3-tier is a software architecture in which the presentation layer, business access layer and data access layer are developed and maintained as independent modules, sometimes on separate platforms.

370 questions
2
votes
1 answer

External communication in the 3 Tier Architecture

When I read about the 3 Tier Architecture I can not understand where communication over eg FTP and Telnet fits the model. Should I place the communication layer beside the Data Access Layer? It seems logical when I use FTP and Telnet to retrieve…
magol
  • 6,135
  • 17
  • 65
  • 120
2
votes
2 answers

Windows service as Service Layer in layered architecture

I have an asp.net project with is created using layered architecture (Presentation, Business and Data Access layer). Now I need to add a windows service to the project which will do a background process. The user can logout from the site, but the…
Dev
  • 309
  • 1
  • 8
  • 24
2
votes
2 answers

the bll,dal and interfaces implementation

My question is related to the bll,dal,interfaces. My project's constructure more or less like this. BLL, DAL, OBJ and 3 layer architecture (As I dont repeat question and codes again,I give the link here) My question is why should I use…
sakir
  • 3,391
  • 8
  • 34
  • 50
2
votes
1 answer

Presentation layer in 3-tier architecture

My question is about various ways of implementing presentation layer in 3-tier architectures When we talk about a 3-tier web application, it is assumed that the presentation layer is browser-oriented, and hence communicates with logic tier through…
mangusta
  • 3,470
  • 5
  • 24
  • 47
2
votes
2 answers

Business layer, data layer, where to put queries?

I have a data access layer that has separate classes for each table in the database. Each class makes objects that reference a row in the table, they have create, update, delete, and fetch functions. They all extend a DBObj class. My question is,…
roflwaffle
  • 29,590
  • 21
  • 71
  • 94
2
votes
1 answer

Using CouchDB with Laravel 4 in a 3-tier app

I'v been searching hardly these past days in how to use CouchDB in the 2-tier, I haven't found a properly documented and useful resource (Doctrine's CouchDB ODM seems very vague I think), so the question is: How are you using CouchDB in your app,…
2
votes
3 answers

BL vs DAL when validation requires the DB

I am planning to put validation logic in business logic layer which could include things like: [Required], [Length > 0], etc. Using data annotations. However, I also need a validation rule that checks that the object is not a duplicate before…
O.O
  • 11,077
  • 18
  • 94
  • 182
2
votes
4 answers

Error handling: Exceptions vs Error method

I'm creating a 3-tier app and I have a problem dealing with error handling. I don't know if I should throw an exception or call a method to communicate the problem to the other layers. Here is a quick exemple, I have: - a FileChooserFrame…
DeadlyJesus
  • 1,503
  • 2
  • 12
  • 26
2
votes
1 answer

updating records in datagridview using 3 tier architecture in c#

How to edit a datagridview in c# that will update the database using 3 tier architecture. Could somebody share the code sample since i am new to this 3 tier concept.
user2059013
  • 117
  • 1
  • 1
  • 6
2
votes
2 answers

using JDBC Connection from presentation tier in 2-tier and 3-tier applications

I am writing a module that will be used in different applications (2-tiers and 3-tiers). I'll need to connect to a DB. so, I made the module requires a java.sql.Connection object as a parameter when used with a 2-tier application. there's no problem…
Attilah
  • 17,632
  • 38
  • 139
  • 202
2
votes
2 answers

Layers and Entities?

(I'm gonna ask 2 question please). We use 3 layers: Bl , Dal , UI. We didn't want to build one big BL , DAL for All Objects. So we created this structure both for Agents and Leads. Now lets say I should write a method : public Agent…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
2
votes
2 answers

Java-EE: How to design data flow in a 3-tiered application environment?

I am currently working on a distributed application using the following components: 1.tier: Database-Server -> MySQL 5.5 2.tier: Application-Server -> Glassfish 3.1.2.2 3.tier: Stand-alone Fat-Client -> Java-SE (JRE 6) I use JPA 2.0…
salocinx
  • 3,715
  • 8
  • 61
  • 110
2
votes
1 answer

In which layer extension methods will come in a 3 tier architecture

I am creating a 3 tier architecture web application, and I want to use extension methods. In which layer should I place the extension methods? Thanks.
Becks
  • 75
  • 1
  • 7
2
votes
2 answers

Manager Layer vs Service Layer

In the 3 tier architecture there is Presentation/Web Layer, Service Layer and DB Layer. However in a recent project I worked on I saw a Manager Layer which is new to me. Can you please explain the difference between Service Layer/ Classes vs Manager…
Fahim
  • 723
  • 1
  • 7
  • 11
2
votes
2 answers

MVVM to interact with a web-service in a 3-tiered application

Question: Does it make sense to use MVVM for a UI that interacts with a web-service in a 3-tiered application? Details: Application's architecture is 3-tiered: Presentation Layer <--Web-Service-->| Business Layer | Data Access Layer Front-end:…
mauryat
  • 1,610
  • 5
  • 29
  • 53