EJB injections vs only JSF managed beans
Asked Answered
U

1

5

I don't know may be my question is completely meaningless, but I can't find any straight information about it.

I had my JSF + Tomcat application and it worked just fine. I want to implement Restful services and JAAS logic. In order to do that, I switched to TomEE++.

Switching to TomEE means that my server will now be more heavy and I'm afraid than it will require more cpu and ram resources than I have in my Amazon AWS micro instance.

The question is: Will the performance drop down if I switch from only JSF managed beans to JSF + EJB?

The sub-question is: what EJB injections can do, and JSF managed beans can not do? (JSF does not allow cyclic injections for example)

Univalve answered 28/7, 2013 at 13:42 Comment(0)
P
9

Will the performance drop down if I switch from only JSF managed beans to JSF + EJB?

Measuring is knowing. But generally, this concern makes no sense.


what EJB injections can do, and JSF managed beans can not do? (JSF does not allow cyclic injections for example)

Generally, they are not intented to be interchangeable. Each have their own clear responsibility. You use JSF bean management annotations to manage beans for front-end (JSF pages). You use EJB bean management annotations to manage beans for business services (BOs/DAOs). That's it.

To learn how JSF+EJB(+JPA) are supposed to work together head to the concrete examples and explanations shown in the following answers:

Pestilence answered 28/7, 2013 at 14:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.