• 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

ques reg facade layer

 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"A session facade delegating some of the business process to a helper class which is a POJO"... Is this considered a good practice ???
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It really depends on the complexity of your system, and the readability of your session facade source code.

If your session facade is really simple, I would not do such thing. If your session facade gets really complicated and you put all this logic inside the session facade, I wonder anyone can understand that but me. Therefore, I introduce POJO and delegate some business methods in it.

Other practice you can do is to break your session facade into two or more session facades instead of using POJO. That also gives a much simplier session facade to work with to the client.

I would say it is only a good practice, but you should not think of that as a rule of thumb. When you have more experience, you should know when to apply to give you the maximum benefits.
[ August 30, 2005: Message edited by: Jeremy Hsu ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic