Question: how ejb works in 3.0?
Answer: An EJB 3.0 session bean is a POJO managed by the EJB container. The functionality of a session bean is defined by its service interface (a.k.a. business interface), which is a plain old Java interface. Using the interface class name, the session bean client retrieves a stub object of the bean from the server's JNDI.