• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why use stateful bean.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we use Stateful bean instead of there is facilites for cookies and HttpSession in servlet.

Both stateful,cookies and HttpSession are maintain state.so what is the use of stateful bean
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

look at this site:

http://www.precisejava.com/javaperf/j2ee/EJB.htm#EJB114
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't forget that HttpSessions are for web clients only, while a SFSB can be used with other clients, i.e. rich clients.

Mark
 
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mark, rich clients means mobile client / Black berry client / PDA Client (or) AWT / Swing Client. Is it correct?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!