Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not clear about stateless session beans

 
Amru Jahagirdar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys ,
I have just started to study for SCBCD. I am not clear about stateless session beans. Can you please explain
with an example? Thanks,

Amruta
 
Alexey Saenko
Ranch Hand
Posts: 30
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Amru,

what exactly do you not understand?

The main idea (from "ejb3 in action") is stateless session beans are the beans which are not able to maintain conversational state.

As you may know stateless session beans are pooled and when a client invokes any method the container takes an instance of stateless session bean and then invokes this method. And it doesn't matter which exactly instance is chosen to invoke.

Hope, this will help.. isn't it?
 
Amru Jahagirdar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Alexey... Thanks a lot. I got it..
So in case of STATEFUL session bean, container must invoke the same bean object which has
saved the conversational state between the client & server. Please correct me if I am wrong.
 
Alexey Saenko
Ranch Hand
Posts: 30
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are absolutely right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic