Question 1
Which statement is true about the relationship between HTTP and WebSockets?
Which statement is true about the relationship between HTTP and WebSockets?
Given the following class definition with numbered lines:

How do you specify to use this mock CDI bean implementation instead of the regular implementation class?
Which code snippet prints the exception error message as part of the page output?
Which type allows you to share servlet attributes across your entire web application?
You are working with JMS publish-subscribe operations.
What happens when a producer publishes a message to a topic for which a durable subscription exists but there are no subscribers available?
Which statement is true about Java methods that are exposed as Web Service operations by using JAX-WS API?
You are building the User Preferences page of an application. A user can change values, such as his or her name, password, address, company, and so on. These values are sent to a CDI backing bean via AJAX when the user tabs out of each field. However, the values must be retained in the CDI bean and stored in the database only when the user clicks the Save button.
Which two scopes will allow your CDI bean to retain its state while the user is interacting with the User Preferences page? (Choose two.)
Given a JSL document describing a batch job:

How do you initiate a batch job?
Given the code fragment:

Which URL triggers the invocation of the getEmployee () method?
Which annotation allows a request to be executed with another Principal's identity?