IntelliJ Java IDE
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes stateful session bean or servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "stateful session bean or servlet" Watch "stateful session bean or servlet" New topic
Author

stateful session bean or servlet

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
when to Use a Servlet to manage the users session?
when to Use a Stateful Session Bean to manage the users session?


SCJP<br />SCWCD<br />SCEA
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Somebody around here claimed SSBs scaled better than HttpSessions.
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
SFSB provide thread syfety, lifecycle managment and can be used by different client types (not only web browsers).
HTTP Sessions (Servlet in your question) can be easily programmed.
SFSB can be used in clusters by replica aware stubs. There are app servers that also provide HTTP session clustering.
Deep Arora
Ranch Hand

Joined: Jan 14, 2003
Posts: 40
Use SFSB when
1) U need Transaction aware components
2) varied Client types
3) reusebility of business logic is an issue
4) if business process involves only single HTTP request and multiple beans are collabrating to fulfill request. And a been not recvng direct call from client needs to assess the client specific session data.
Thanks
Deepak Arora
 
 
subject: stateful session bean or servlet
 
Threads others viewed
Manage session state in Servlet in huge volume traffic site???
Found this Question in the Mock exam. Can anybody tell/explain what the choice is...
Servlet or Stateful Session bean ?
doubt in a mock exam q/a.
Question on EJB -- pls. explain me the difference.
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com