EJB stateless session bean: What is stateless session bean?

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.
EJB-methods-Entity-Bean.aspx
EJB Create Methods - The create() method is used to insert data into the database by creating a new instance of CMP entity bean...
EJB session bean: What happens if remove() is never invoked on a session bean?
EJB session bean - the bean might be kept in cache until the session is timed out after which it is removed or..
EJB transaction attribute: What is the default transaction attribute for an EJB?
EJB transaction attribute - There is no default transaction attribute for an EJB. The deployer must specify a value for the transaction attribute for the methods that have..
Post your comment