What is stateless session bean?- A stateless session bean is an enterprise bean that does not maintain conversational state specific to a client session.
- It is an EJB component that implements ‘javax.ejb.SessionBean’ interface.
- The stateless session beans carry equal value for all the instances due to which a container can assign a bean to any client making it very scalable.
- There is no instance state. The business methods on a stateless session beans are like procedural applications or static methods, so all the data needed to execute the method is provided by the method arguments.
- Stateless session beans are very lightweight and fast.Typically an application requires less number of stateless beans compared to stateful beans.
|