Which two actions can be implemented as interceptors?

Interceptors provide a way of refactoring code shared by multiple EJB 3 components into a single

unit. This is particularly appealing when the code in question can be described as implementing a
specific aspect, for example, having a well-defined purpose that can be described in a concise
way. Which two actions can be implemented as interceptors? (Choose two.)

Interceptors provide a way of refactoring code shared by multiple EJB 3 components into a single

unit. This is particularly appealing when the code in question can be described as implementing a
specific aspect, for example, having a well-defined purpose that can be described in a concise
way. Which two actions can be implemented as interceptors? (Choose two.)

A.
Logging the IP addresses of all clients of a web application

B.
Computing sales tax based on customer ZIP code for a variety of purchase operations

C.
Publishing to a JMS topic the arguments to any successful method invocation on an EJB
component

D.
Computing a discount percentage based on a customer’s profile and the contents of the
customer’s shopping cart

E.
Logging the identity of any authenticated clients to any of the business methods defined by a
set of EJB components

F.
Ensuring that the clients of a web service implemented as a stateless session bean are
authorized to access its operations, based on a WS-Security SOAP message header



Leave a Reply 0

Your email address will not be published. Required fields are marked *