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

JSF Question

 
Rama Ghanta
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we call the SessionFacades from the JSF Managed Bean or is it a better to delegate this functionality to BusinessDelegate and ServiceLocator. One other option would be to have a managed Business Delegate class, in that case we don't need a serviceLocator.

What would be the best practice in this situation

Thank you
Rama Zha
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of the exam are you using?

With JEE5, a business delegate is less useful when you have dependency injection, and the same could probably be said for a service locator.

-Cameron McKenzie
 
Rama Ghanta
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Java EE 5.
Does that mean use DI from the managed bean?
 
srav kandy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the ejb lookup fails, can the ejb exceptions be caught in managed beans.
 
Cory Chen
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DI is not available for POJOs. So, a managed is not a POJO?

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic