Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cade's component diagram

 
Ali Hussain
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • 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 ]
 
vu lee
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • 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.
 
Giri Alwar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Giri: Thanks for clearing my doubts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic