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

If use JSF, multiple EJB are injected in one Manage bean, is it good?

 
cwj burg
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If use JSF, multiple EJB are injected in one Manage bean, is it good?
 
Tarang Agrawal
Greenhorn
Posts: 22
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Its depends on the design. but one another option for this is that you create a business delegate and call the multiple EJB's in it and in your managed bean you only call this dusiness delegate.
by using Business Delegate Design Pattern it will be simple to manage the EJB. If there is any change in the EJB or if you want to add another EJB you need to change only one file, you not need to change all the managed beans.

Thnaks
Tarang Agrawal
SCJP, SCWCD, SCBCD,OCMJEA
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic