Home » Oracle » 1z0-134 » Which mechanism helps achieve this?
Some of the messages entering a JMS queue are expiring and are being removed from the queue. You need better insight regarding these expired messages.
Which mechanism helps achieve this? (Choose the best answer.)
A. Set the "Log Expired Message" attribute to true for the queue.
B. Associate an ExpirationEventHandler object for the queue.
C. Enable Message Life Cycle logging for the JMS Queue.
D. Configure an Expiration Event Handler for the JMS Queue which logs the expired message properties.
Correct Answer: B
Explanation/Reference:
The Expiration Policy log option removes expired messages from the system and writes an entry to the server log file indicating that the messages have been removed from the system. The actual information that is logged is defined by the Expiration Logging Policy.
Reference: https://docs.oracle.com/cd/E13222_01/wls/docs81/ConsoleHelp/domain_jmsqueue_config_expiration-policy.html
Download Printable PDF. VALID exam to help you PASS.
|
|