This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes If use JSF, multiple EJB are injected in one Manage bean, is it good? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "If use JSF, multiple EJB are injected in one Manage bean, is it good?" Watch "If use JSF, multiple EJB are injected in one Manage bean, is it good?" New topic
Author

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

cwj burg
Greenhorn

Joined: Mar 31, 2013
Posts: 3
If use JSF, multiple EJB are injected in one Manage bean, is it good?
Tarang Agrawal
Greenhorn

Joined: Nov 22, 2012
Posts: 22
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
 
Consider Paul's rocket mass heater.
 
subject: If use JSF, multiple EJB are injected in one Manage bean, is it good?
 
Similar Threads
How to access method of another Bean
How to call a JPA-Facade from a JSP
Reading values of the faces-config.xml
Question with @EJB annotation
JSF + JPA how to use together