I have an EJB Athat calls an EJB B. The user interface should not wait for a response for more than 30 seconds. If some data is missing, it should return a partial response.
How to determine the timeout (time limit of 30 seconds) on an EJB B?
I can define EJB Bas Asynchronouswhich returns Futureand then does Future.get(30, TimeUnit.SECONDS). But is this the best solution?
Thank you
PS I'm using glass fish 3.1
source
share