Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 49

Given:

Which annotation do you use on line 1 to ensure that clients immediately time out when attempting to concurrently invoke callMethod () while another client is already accessing the bean?

    Correct Answer: D

    To ensure that clients immediately time out when attempting to concurrently invoke callMethod() while another client is already accessing the bean, you should use @AccessTimeout(0). This annotation specifies that no wait time is allowed, causing the client to immediately time out if the bean is already being accessed by another client.

Discussion
orjavaOption: D

Answer D >0 - (value, TimeUnit) 0 - not wait -1 - wait forever