File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: If use JSF, multiple EJB are injected in one Manage bean, is it good?
 
Similar Threads
Question with @EJB annotation
Reading values of the faces-config.xml
How to access method of another Bean
JSF + JPA how to use together
How to call a JPA-Facade from a JSP