Choose the option that best describe the deployer’s choices, when deploying an EJB that is also exposed as a RESTful web service using JAX-RS (Choose one):
A.
The EJB can only be deployed to a web container, since RESTful access to the EJB requires a web container to support the HTTP interaction needed.
B.
The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the ejb container.
C.
The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the web container.
D.
The EJB can be deployed to an EJB or web container that is visible to the JAX-RS runtime, even on an application server separate from the JAX-RS runtime, since EJBs support local or remote interactions via RMI.
What does it mean? EJB is deployed into web container? Theoretically EJB can only be deployed within EJB container which support the local reference to EJB of JAX-RS runtime in the web container
Web container: Manages the execution of web pages, servlets, and some EJB components for Java EE applications. Web components and their container run on the Web server such as Jetty, tomcat.
http://docs.oracle.com/javaee/6/tutorial/doc/bnabo.html