what is the difference between stateless and stateful
sessions?

Answer Posted / sathish babu

stateless sessinobean:can not maintain the state,cannot
maintain the persistance(data base),onece sutdown
machine,we cannot see that data,cannot have the
passivate,activate states.ex:atm mini statements.

statefull sessionbean:maintain the state,but cannot
maintain the persistance,once we sutdown the system the
values stored in local hard disc,can have the passivate and
activate states.ex:shopping card

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in EJB diclare the static methods are not?

2913


What is session bean?

541


Is it legal to have static initializer blocks in ejb?

554


What is @enableautoconfiguration?

531


Define Context?

598






What is message-driven bean?

578


How can a session bean be configured for transactions of bean-managed?

576


Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?

539


What causes statelessness?

476


How ejb invocation happens?

571


What is rmi and ejb in java?

535


Why do we need ejb in java?

517


Can beans who are involved in transaction have 'passivation' process?

541


What are the differences between ejb 3.0 and ejb 2.0?

525


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?

630