Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

explain why we say stateless beans does not maintain
conversation state besides statefull maintains conversation
state. give some examples...

Answer Posted / madhu

We say stateless beans do not maintain state, simply because
it doesn't. Please read below.

As we all know web based interaction is mostly HTTP based
which is a stateless protocol. Statelessness is defined in
simple terms as, does not keep track of previous
conversation. That means, each and every request is
independent of the other.

Stateless or stateful session beans are no exception and
they are HTTP based as well or work in conjunction with such
front end mechanisms (such as JSPs, Servlets, ASPs etc..).
So unless otherwise, we specifically maintain that state,
all the beans would remain stateless.

In the case of Stateful session beans, we maintain it in the
form of parameter value, which is maintained through out the
session.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to invoke ejb from java client?

985


Explain the concept of connection pooling feature of ejb container?

972


What are the types of enterprise bean?

990


Does spring use ejb?

978


What is Enterprise JavaBeans (EJB)?

1035


Is ejb be called from another ejb? If yes then how?

994


How does ejb container work?

965


Explain the concept of local interfaces?

958


What are the callback annotations for entity bean?

1015


Mention the three levels for applying interceptor methods.

1014


What is mdb in ejb?

964


How many ejb objects are created for a bean?

988


Why stateless is better than stateful?

1038


What are stateless functions?

966


What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?

1008