Deployment - Quiz
Total: 9 questions
1. Can stateless and singleton session beans be implemented as JAX-RS resource or provider classes?
Can stateless and singleton session beans be implemented as JAX-RS resource or provider classes?
Yes.
2. How the resources and providers that make up a JAX-RS application can be configured?
How the resources and providers that make up a JAX-RS application can be configured?
- Using an application-supplied subclass of Application;
- use one of Jersey's implementations of ResourceConfig;
- deployment with @ApplicationPath annotation;
- deployment with Jersey specific servlet without an application model instance.
3. Which methods does abstract class Application have?
Which methods does abstract class Application have?
public abstract Set<Class<?>> getClasses();
public Set<Object> getSingletons();
4. What does getClasses() method return?
5. What does getSingletons() method return?
6. Which Servlet containers does Jersey integrate with?
Which Servlet containers does Jersey integrate with?
Jersey integrates with any Servlet containers supporting at least Servlet 2.5 specification.
7. Deployment agnostic abstract class of JAX-RS.
Deployment agnostic abstract class of JAX-RS.
Application class.
8. The advantages of the ResourceConfig over the Application class.
The advantages of the ResourceConfig over the Application class.
More simple registration of JAX-RS components, such as scanning for root resource and provider classes in a provided classpath or a in a set of package names.
9. Which type of deployment doesn't need web.xml?
Which type of deployment doesn't need web.xml?
Deployment with @ApplicationPath annotation.