What is difference between stateless and stateful session beans?

1) Stateless session bean maintains across method and transction
2) The EJB server transparently reuses instances of the Bean to service different clients at the per-method level (access to the session bean is serialized and is 1 client per session bean per method.
3) Used mainly to provide a pool of beans to handle frequent but brief reuests. The EJB server transparently reuses instances of the bean to service different clients.
4) Do not retain client information from one method invocation to the next. So many requir the client tomaintain on the client side which can mean more complex client code.
5) Client passes needed information as parameters to the business methods.6) Performance can be improved due to fewer connections across the network.

1) A stateful session bean holds the client session’s state.
2) A stateful session bean is an extesion of the client that creates it.
3) Its fields contain a conversational state on behalf of the session object’s client. This state describes the conversation represented by a specific client/session object pair.
4) Its lifetime is controlled by the client.
5) Cannot be shared between clients.


I born in Good cultural place called India. My family is traditional family. We fallow all Indian traditions.

Tagged with:
Posted in JSP
3 comments on “What is difference between stateless and stateful session beans?
  1. Bedsgergisp says:

    Just want to say what a great blog you got here!
    I’ve been around for quite a lot of time, but finally decided to show my appreciation of your work!

    Thumbs up, and keep it going!


  2. I was suggested this web site by my cousin. Iam not sure whether tis post is written by him
    as no one else know such detfailed about my problem.
    You are amazing! Thanks!

  3. You actfually makе it seеm soo easy ᴡith yⲟur presentation buut І fіnd ths topic tо be realⅼy ѕomething tһаt Ⅰ think Ι աould nevr understand.
    It ѕeems toо complex and vеry broad for me. Ι’m ⅼooking forward for үour next post,
    I ԝill try to gett the hang off іt!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 678 other followers

April 2010
« Jul   May »
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 249,150 hits