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?
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?
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.
Answer D >0 - (value, TimeUnit) 0 - not wait -1 - wait forever