SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Tirumal Reddy Moolamalla wrote:I agree. But i have one doubt regarding usage of stateful session beans for the given use case.
As this requirement is related to shopping cart (online). We can assume certain default non functional requirements. If we dont use EJB's for this use case then we need to handle transactions and state on our own, where as the very basic purpose of EJB stateful session bean is this.
please validate my understanding.
Regards,
Tirumal Reddy M
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
Srinivasan Rengan wrote:Jeanne, no one can deny the scalability efficiency of stateless session bean. But i was wondering if this has a bold in the blue point about session management:
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html
Under the section ( Web-Tier State Recommendations in the above link) and further down, the recommendation has been in favour of SFSB.
Would invite your comments on the same.
Srini
SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
Srinivasan Rengan wrote:
This is purely my perception and I am happy to hear that it is wrong too!!
Thanks
Srini
Pranab Das, PMP, SCEA
Luke Murphy wrote:
1. Make JSF backing bean fat, SF SB
2. Make JSF backing bean fat, Stateless SB
3. Make JSF backing bean thin, SF SB
4. Make JSF backing bean thin, Stateless SB
[/QUOTE[
No presentation or business state required.
Now, you may be saying bu8t sure you can store business state in the HttpSession, ManagedBean.
Of course you can.
But is this good separation of concerns?
Maybe in a web centric architecture you could make arguments for such but in a EJB centric architecture no way.
It would be the same as storing presentation logic / state in the stateful session bean.
Yuke.
Trust God, but always tether your camel... to this tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|