• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

SFSB and HttpSession  RSS feed

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
SFSB maintain state between method invocations. Like wise HttpSeeeion can also maintain the state. Then why do we need to step in to the complexity of Stateful SessionBean (interfaces, bean class etc..). I misunderstood the concept?
Thanks
-Sainudheen
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sainudheen Mydeen:
Hi All
SFSB maintain state between method invocations. Like wise HttpSeeeion can also maintain the state. Then why do we need to step in to the complexity of Stateful SessionBean (interfaces, bean class etc..). I misunderstood the concept?
Thanks
-Sainudheen

 
Basu DN
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sainudheen Mydeen:
Hi All
SFSB maintain state between method invocations. Like wise HttpSeeeion can also maintain the state. Then why do we need to step in to the complexity of Stateful SessionBean (interfaces, bean class etc..). I misunderstood the concept?
Thanks
-Sainudheen


Sorry for empty previous message..
SFSB is useful if we've multiple clients like J2ME client,Swing client,EJB client,Web Client wants to participate in the session related operations. If we use HttpSession then web client is only used ...
 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using SFSB also lets you participate in transactions provided by the container. Using the Http Session you would have to implement that yourself.
Also, the HttpSession is only available is you have an HttpServletRequest class around. So it is not useful for applications that do not have access to this.
Brian
 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,lets hear what sun recommends for maintaining client state
http://java.sun.com/blueprints/qanda/app_arch/index.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!