Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

SFSB and HttpSession

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic