• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cade's component diagram

 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Cade's diagram we have something like this:

jsps ---> Controller ---uses servicelocator ---> a stateless session bean.

Which component is in which layer (tier)? and which pattern is used in the stateless session bean (is it a facade to ejb-tier?)

thanks
[ June 20, 2005: Message edited by: Shahid Afridi ]
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is what I think. The first three is in the presentation tier and the last one is in business tier. SessionBean more or less represents session facade.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shahid,
The JSPs, Controller and Service Locator would all be in the Web (aka presentation) tier. The Stateless Session bean would be in the EJB (aka business logic/service) tier. Stateless Session beans typically serve as facades to the EJB tier. They expose business services.
 
Ali Hussain
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I have a music store application, which can be accessed via an application client as well, it should be something like this:

non-web-client ---> MusicStoreBusinessDelegate ---> use serviceLocator ---> MusicStoreSessionFacade (SFSB?).

BusinessDelegate/serviceLocator would be in presenatation layer, right? But this means ServiceLocator component would be located both in client and web layer...?
 
Giri Alwar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct. Specifically, the BD/SL would be in the client tier in this case since they would physically reside on the client machine. If you have both a web client and a non-web client, then you will have two SLs (one in the web tier and one in the client tier).
 
Ali Hussain
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Giri: Thanks for clearing my doubts.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic