WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Stateful session VS Stateless session bean

  • 1.  Stateful session VS Stateless session bean

    Posted Sat October 08, 2016 03:12 PM

    Hi All,

    can any bodycan help in understanding the Stateful session vs Stateless session bean

    kalyan.



  • 2.  RE: Stateful session VS Stateless session bean

    Posted Wed October 12, 2016 12:12 PM

    I would suggest doing some reading on EJBs first and ask more speccific questions.  But quickly, Stateful beans persist state within the instance of that EJB (so if you have a lot of user state it can grow) and can be persisted (e.g. to disk) whereas Stateless beans keep no state within the instance. There are performance and runtime implications when using Stateful beans that has to be fully understood before using them.