Home » Interview Questions » EJB Interview Questions » Can an EJB client invoke a method on a bean directly?
 

Can an EJB client invoke a method on a bean directly?

An EJB client should never access an EJB directly. Any access is done through the container. The container will intercept the client call and apply services like transaction, security etc prior to invoking the actual EJB. This relationship between the EJB and the container is like "don't call us, we will call you".

Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code: