cancel
Showing results for 
Search instead for 
Did you mean: 

state less session bean and stateful session bean

Former Member
0 Kudos

hi,

1.i have a state less session bean in WAS. if 10 client calls the bean how many bean objects will be created by the server .

2.i have a state full session bean in WAS. if 10 client calls the bean how many bean objects will be created by the server .

regards

Guru

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Dear Guru,

1.i have a state less session bean in WAS. if 10 client calls the bean how many bean objects will be created by the server

A. In Stateless Session Bean a pool of beans is created and that will serve the client's calls. if the client has made 10 calls then only 1 bean object will be created which will be shared among all the clients calls.

2.i have a state full session bean in WAS. if 10 client calls the bean how many bean objects will be created by the server .

A. In Stateless Session Bean for every client call a seperate bean object is created.i.e. for every client call a unique bean instance is created.

In your scenario 10 bean objects are created for 10 client calls.

Hope i have given you desired answer.

regards

Anil Dichpally