This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sateful vs. Stateless Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Sateful vs. Stateless" Watch "Sateful vs. Stateless" New topic
Author

Sateful vs. Stateless

Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
Dear All,

I believe this is the question to ask in order to choose between Stateful or Stateless Session Beans.

True or False !

In an EJB centric application:
If it has both Application Client & Web Client then use Stateful Session Beans to maintain state, but if there is only Web Client, use Stateless Session Beans and HTTP session to maintain state.

Am I right or wrong ?
Thanks All


SCJP, SCWCD, OCMJEA, OCEEJBD, OCEJPAD, TOGAF® 9 Certified, OCEJWSD
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Luay,
Yes. That is a good rule of thumb.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

In my solution I decided to go with SFSB to maintain state even if my application has only a Web Client. What's wrong with that approach?


SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
WoooooooooooooooooooooooHoooooooooooooooooooooo... Finally mystery solved !

P.S.: of course in my assignment I can assume anything that is not given or mentioned ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sateful vs. Stateless