what is the difference between stateless and stateful
sessions?

Answer Posted / buddheshwar ojha

BY rahul ojha
A stateful session bean maintains state between client and the statefulbean for a duration of time and once state is end it end session completely it also maintains data persistency(database).(Shoping card etc...)

A stateless session bean does not maintain conversation state for a longer time Instance variables used by a method of a stateless bean may have a state, but only for the duration of the method invocation. After a method has finished running either successfully or unsuccessfully, the states of all its instance variables are dropped.(HTTP , telephone line conversation etc...).

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the key benefits of the ejb technology?

607


Match the ejb functions given below with the functionality equivalent in sql?

547


What do you understand by session facade?

524


What is bean-managed persistence?

579


What is ejb bean in java?

589






What is an ejb platform?

559


What is stateless session bean?

552


What were entity beans?

588


What is stateless and stateful?

512


What are the advantages of java beam?

525


Define ejb Create() and EjbPostCreate()?

565


What is ejb context?

541


Elucidate callback in ejb?

542


What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations? When would I use one over the other?

632


What is EJB object?

586