A beanless session provides the application container with information about the intentions of the services provided. Since it has no state, the application container can decide at any time to destroy the bean and recreate it the next time it is needed.
Without this semantics, an application container cannot optimize your application for speed / memory / any other. So, although a beans-free session is mostly reminiscent of POJOs, they provide some additional βhintsβ for the application server.
If you look at how a stateless beans session should be implemented using the EJB3 specification, you will see a lot of similarities between it and a regular POJO (besides additional annotations).
source share