• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Project Architeture

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,

Vijay
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.




 
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic