I have a Stateless EJB containing various methods and I would like to use a timer in a function so that if the method takes longer than say 30 seconds, a timeout will occur and the caller will be notified.
I have looked at the @Schedule
annotation for EJB Methods but I don't think that can serve my purpose.