Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Project Architeture

Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all,

i wish to understand more about different ways to design a project. and also i would like to know how many different layered structures used in the industry. May be you could refer to some good docs on the web.

i am now working in a project which has a three layered architecture, begin
1) presentation, html javascript with struts
2) business layer, ejb jdbc jndi
3) database, oracle tables procedures & triggers

it works like this, as the struts action receives the request it does some small logic and call the appropriate ejb using jndi. the ejb (99.99% stateless session beans) calls an appropriate class (dao???) which has only static methods that, this one opens the db connection using the datasource using jndi, does all db operations (calling procedures) and returns the results, regular pojos (VOs), to the ejb . the ejb, then, returns data to the web application.

in development environment we use two servers, one tomcat for the presentation and jboss for ejb codes. but in the live server with clustering facilities, they are deployed in a same server, being that the ejbs are not remotely deployed nor the web application. each time the server receives a request it goes to any one of the clusters through load balancing server. (this is what i know about)

having said that, does this kind of project arch requires ejb?
how to better improve the design of this project?
does the ejb call from the struts action goes through rmi/iiop? if so is it a overhead? improvements?
how may other ways are there to connect different layers?
how to cross verify/judge our project design/structure/architecture?
does this not effect the overall performance of the application itself?

Thanks a lot and lot,

Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The J2EE Programming model consists of:

Presentation Tier - here is where presentation/display/GUI controls logic goes, e.g. Struts Controller including it's Actions, Flash modules, WAP code, HTML forms, graphics, etc.

Business Tier - here is where business logic goes, e.g. POJO objects, Enterprise JaveBeans, DAO objects, etc.

Integration Tier - here is where the other systems are, e.g RDBMS, EIS, Cobol apps, Perl code, Shell Scripts, Web Services, etc.

Processing calls go downward, and data is returned upwards.

Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic