Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the Difference between statefull and stateless session bean?  RSS feed

 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to All.


What is the Difference between statefull and stateless session bean?
 
Suseela doddi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stateless Session Bean,which doesnt maintain state(conversational state) across method calls
and Stateful Session Bean,which maintains state across method calls.
 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stateless Session Bean should not have any Instance Variables, where as Stateful Session Bean can have Instance Variables. The Instance Variables is calles a State.
 
Prasanna Chennupati
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Subbarao,

Stateless session beans don't have any state specific to a client.But they have state in the form of instance variables.

Stateful session beans maintain the client specific state across the method calls with a single client.

Please refer http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!