READ Free Dumps For Oracle- 1z0-897
Question ID 4440 | 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): |
Option A | 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. |
Option B | 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. |
Option C | 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. |
Option D | 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. |
Correct Answer | C |
Question ID 4441 | Given the JAX-RS root resource class fragment: |
Option A | A. No further configuration is required - the JavaEE runtime will pick up the security constraint and configure the web container to match. |
Option B | B. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, so the proper information can be propagated to the EJB container. |
Option C | C. The developer will have to turn on authentication in the web container configuration file, so that all incoming requests are authenticated in order to be processed. |
Option D | D. The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, and then map web-tier roles to ejb-tier roles, since the JAX-RS and EJB runtimes cannot use the same set of roles. |
Correct Answer | B |