• 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

J2EE Patterns

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In an application that follows the MVC Architecture, we want to implement the Business Delegate and Session Facade patterns.
The flow we have decided is as follows:
Any request from the JSP is routed to the Controller Servlet. The Servlet will talk to a Business Delegate, which in turn will delegate the call to a Session Facade. The Session Facade decides (it contains the Session Bean lookup logic plus the Business Logic) which Session Bean to talk to. The Session bean in turn will lookup the Entity bean that will talk to the Database.
The outbound response will follow the revesre path.
DO YOU THINK THIS WILL BE AN EFFICIENT DESIGN? PL ADVISE.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by pradeeppk:

DO YOU THINK THIS WILL BE AN EFFICIENT DESIGN? PL ADVISE.


yes, but you should also consider implementing a command pattern to help handling the client requests with the Front Controller Servlet, another thing is implementing a Service Locator wich could cache remote home references/home handles to your Session Facade what can improve the performance of your application significativelly.
regards.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you need the second layer of Session beans? The Session Facade usually talks directly to either BO's/DAO's or (in simple cases) Entity beans. You are simply adding unneeded overhead with the second layer of Session beans.
Kyle
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pradeep,
You need to login according to the naming conventions of this site.
Please be aware.
Kishore.
 
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic