GeekInterview.com
Series: Subject: Topic:
Question: 61 of 124

what is project architecture?

Asked by: Interview Candidate | Asked on: Oct 2nd, 2006
Showing Answers 1 - 6 of 6 Answers

Hi,

Project Architecure means what are the tiers in our project with flow diagram.

supposoe our project contains five tiers like client tier ,presentation tier, Business tier,Integration tier,Data tier. then we draw the all tiers flow.

project approch is different from project architecure. sorry here i can't insert my own project architecure diagram. if any one want project architecure , project approch  then mail me.

Client tier:

 IE Browser (default) from which the end user will access the application
 The request from the browser will be submitted to the Application Server using HTTP protocol.
 The Response from the presentation layer (struts framework) will be interpreted into html pages to view on the browsers.
 Presentation Tier:

Struts Framework with Tiles
 On Request from the browser, the appropriate Action Class handles the user request. The Action class then connects to the business tier via Service Business Delegate.
 Tiles have been used to create a set of pages with a consistent user interface (e.g.: the same navigation bar, header, footer, etc.).
 Taglibs are used for displaying tabular data (e.g. search results) in a consistent fashion, with pagination.
Business Delegate layer
 Enable the Struts Action classes to be unaware of underlying Session Beans
 Encapsulates the invocation of Service Locator to locate them.

Advantages of Struts
Centralized File-Based Configuration, i.e. rather than hard-coding information into Java programs, many Struts values are represented in XML or property files.
This loose coupling means that many changes can be made without modifying or recompiling Java code.
Validation of the user entry fields in the jsps to be handled by entries in the validation.xml and defining validation rules in validator-rules.xml.
Internationalization of the static components of the screen as field and button labels, titles, error messages etc.
This approach also lets Java and Web developers to focus on their specific tasks (like implementing business logic, presenting certain values to clients.) without needing to know about the overall system layout.

Business Tier

 The Business Delegate identifies the business service class (the Session EJBs) and delegates client request to the EJBs. Internally, the session beans are shallow, and delegate all business logic requests to business logic POJOs, which in turn implement the actual functionality.
 The Business Logic POJOs encapsulate the server side business logic. They do not use Hibernate directly, but instead call upon Data Access Objects (DAO) to work with the model. Parameters and return values are modeled as Data Transfer Objects (DTO), and hence no Hibernate model classes will ever leave the DAO layer. The business logic is made available in the business service class, which increases maintainability and easy debugging, if necessary.

Hibernate/DB Tier
The DAOs encapsulates the database access. For all practical purposes, we are using Hibernate (v 2.1) as the OR mapping layer. This saves development time to write SQLs for executing insert and update statements, find by primary key etc. For each value object that directly or compositely represent a table in the database, we have Hibernate mapping files.
For some complex data retrieval, however we will be using raw SQLs (independent of database) from the DAOs and populate the Value Object POJOs. In those specific cases, the DAOs will be having direct access to the Databases using the available connection. The connection properties of the DB Manager, holding the data sources, direct the request to the appropriate database.

Issues that may rise of Hibernate
 Hibernate no longer supports dynamic proxies
 The Hibernate has issues using Microsoft's driver especially when using SqlServer2000. It appears that the failures are due to some strange handling of dates.
 Hibernate has issues with Informix Databases due to the way JDBC implementation is done in Informix.

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in
Hyderabad

"HELP EVER HURT NEVER"&"IMPOSSIBLE AS POSSIBLE"

Note:If any one want java materials like e-books,faq's send a mail to my id.if any doubts regarding java send a mail to my id, if possible i will send answers.if any one want how to install java softwares ,tomcat,weblogic,eclipse,jbuilder etc and how to use plz send amil or ask online also i will definitly tell.
see my profile by clickon below link: http://in.geocities.com/bora_srinivasarao/MyHomepage.html

java : http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/DEA2eIX.html

 

Yes  2 Users have rated as useful.
  
Login to rate this answer.
ritubhardwaj

Answered On : Feb 25th, 2007

View all answers by ritubhardwaj

hi
     plz send me any project architecure diagram of a project in struts with the entire description.

Yes  1 User has rated as useful.
  
Login to rate this answer.
Abhiany Gautam

Answered On : Mar 15th, 2007

Can anyone send me project architecture diagram. and plz differentiate project architecture and project approach briefly. Does project architecture follows project approach.

Yes  1 User has rated as useful.
  
Login to rate this answer.
rekha

Answered On : Aug 19th, 2011

anyone pls send me project architecture diagram. and plz differentiate project architecture and project approach briefly. Does project architecture follows project approach.
Is project architecture is same for all struts, spring etc for all. or different architectures for all. pls tell me

  
Login to rate this answer.

The architectures is nothing but how many layers will be there and which technologies are involved on each layer.

1) View Layer -------------> JSP, HTML, Ajax Technologies
2) Persistence Layer -------------> JDBC, Hibernate and i baties etc.
3) Controller Layer -------------> Struts (Action servlet)
4) Session Layer -------------> spring, EJB and etc.
5) Data Layer -------------> Database Technologies like Oracle, MySQL

  
Login to rate this answer.
Prasad MN

Answered On : Dec 29th, 2012

Project Architecture is nothing but is structure of your application. What are the layers are used to retrive the data from the Database.

Code
  1. Presentation Layer
  2. ----------->Controller
  3. -------------->Business Delegate Classes
  4.  --------->Helper Classes
  5. --------------->DAO classes
  6.  

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Core Java Interview Questions

EJB Interview Questions

Hibernate Interview Questions

Java Interview Questions

Java Patterns Interview Questions

JDBC Interview Questions

JMS Interview Questions

JSP Interview Questions

Java OOPS Interview Questions

Ruby Interview Questions

Servlets Interview Questions

Spring Interview Questions

Struts Interview Questions

Websphere Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.