0 votes
24 views

What are the differences between stateful session bean and stateless session bean?

in Technology by (192k points)

1 Answer

0 votes

Following are the differences between stateful session bean and stateless session bean:

  • EJB Container creates a separate stateful session bean to process client's each request.whereas EJB Container normally creates a pool of few stateless bean's objects and use these objects to process client's request.

  • As soon as request scope is over, statelful session bean is destroyed but stateless bean remains active.

  • A stateful session bean is a type of enterprise bean which preserve the conversational state with client. A stateful session bean as per its name keeps associated client state in its instance variables Whereas because of pool of stateless session beans, instance variable values are not guaranteed to be same across lookups/method calls in stateless session beans.

by (192k points)

Related questions

0 votes
1 answer 16 views
16 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 19 views
19 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 18 views
0 votes
1 answer 14 views
14 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 23 views
23 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 29 views
29 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 11 views
0 votes
1 answer 16 views
0 votes
1 answer 13 views
0 votes
1 answer 29 views
29 views asked Dec 11, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
0 votes
1 answer 16 views
0 votes
1 answer 10 views
0 votes
1 answer 10 views
0 votes
1 answer 9 views
0 votes
1 answer 13 views
0 votes
1 answer 22 views
0 votes
1 answer 16 views
...