You
can implement RESTful views of enterprise beans using JAX-RS for a
stateless or singleton enterprise bean that uses a no-interface view
or a local business interface.
Implementing RESTful views of a no-interface EJB
If you have Enterprise JavaBeans (EJB)
applications that are exposed using a no-interface view, you can expose
a RESTful interface to the enterprise bean using Java API for RESTful Web Services (JAX-RS).
By implementing JAX-RS annotated enterprise beans, you keep the EJB
functionality including transaction support, injection of Java EE components and resources, and other
EJB session bean capabilities.
Implementing RESTful views of an EJB with local interfaces
If you have Enterprise JavaBeans (EJB)
applications that are exposed using a local interface view, you can
expose a RESTful interface to the enterprise bean using Java API for RESTful Web Services (JAX-RS).
By implementing JAX-RS annotated enterprise beans, you keep the EJB
functionality including transaction support, injection of Java EE components and resources, and other
EJB session bean capabilities.