• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

SCEA Part 2 - Delegate Layer Needed?

 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
For the part 2, I am providing a JSF solution. So, the layer is like:
JSF--> Backing Bean --> Session Beans --> JPA

When I am designing an application, if I have to make it framework-independent, I would need to introduce another layer like:
JSF--> Backing Bean --> Business Delegate --> Session Bean --> JPA

So, in case, the client decides to move from JSF to say Swing or something else, the JSF and backing bean would drop off and the delegate will be directly called.

For the exam, its is enough for me to give a direct JSF solution and I don't need the delegate actually...

So, now, do I get marks for such layering? or will I lose marks for not having a delegate layer?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Delegate layer has many forces besides isolating the presentation from the business tiers, like exception translation, hiding the details of service creation, reconfiguration, and invocation retries from the clients...etc.

Although JSF can use EJB 3 annotation to call the session beans directly, but the other delegate forces makes it worth to use than the annotation option.

From my readings in this forum and other users' experience, the more patterns you include in your design the more points you get, also there are questions in part three about the used patterns and the reason of using it, and so it will be a good point to mention there.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply. Yah, I was looking at using annotations only. I think I would like to include another delegate layer.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic