explain why we say stateless beans does not maintain
conversation state besides statefull maintains conversation
state. give some examples...
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / madan
Stateless session beans are used to maintain Stateless session that means, for example if u have a web page, that does not contains any more web page links means, so we no need to store the informations for future purpose(i means in another web pages), so , in this case, we used Stateless Session beans
Stateful session means, we have links, we need to store the authentication details like atm transfer, it is showing first password page, then saving,then amount, so once we entered details, then no need to enter any more information.. so this is Stateful
latest version of Ejb 3 is by annotations...Very nice
Is This Answer Correct ? | 0 Yes | 0 No |
Differentiate Conversational from Non-conversational interactions?
An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?
Can you be deported if you are stateless?
what are the classes you used in Beans?
Name the attributes of javax.ejb.stateful.
What is Enterprise JavaBeans (EJB)?
What are ejbs used for?
Can remove() be a Stateless Session bean?
What is ejbdoclet?
Can CMP manage BMP Transaction ? Entity Bean Life Cycle ?
1 Answers IBM, SAP Labs, Sony,
In bean managed transactions, how session bean can be configured?
What is stateless ejb?