Which of the following is true ?

Options
- Preserving of any state across method calls does not performed by Stateless session beans
- Multiple users can access Stateful session beans at the same time
- Both are correct


CORRECT ANSWER : Preserving of any state across method calls does not performed by Stateless session beans

Discussion Board
Stateless Session Bean EJB

Stateless Session Beans doesn't preserve any state across method calls at the same time it doesn't maintain a conversational state with the client. In stateless session bean instance variables in this can contain a state specific to that client but till the duration of invocation. When the method is finished the client state is not retained. Client can change the state of instance variables in a pooled stateless beans. The state is held till the next invocation. All instances are equivalent in terms of stateless beans. They can support multiple clients and provide better scalability for applications requiring larger number of clients.

Stateless bean is also used to implement a web service.

Rohit Sharma 08-22-2014 08:32 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement