The spec requires that the container retries a @Timeout method that has a
transaction attribute REQUIRED or REQUIRES_NEW at least once. You can set the
maximum number of retries. Keep in mind that if your timeout method fails that
many times, GF cancels that timer.
Regards,
-marina
glassfish_at_javadesktop.org wrote:
> I have an operation that uses optimistic locking and runs in a timer. It may receive an OptimisticLockException - how can I restart the transaction and retry the operation in this case?
>
> Thanks!
> [Message sent by forum member 'dobes' (dobes)]
>
> http://forums.java.net/jive/thread.jspa?messageID=330687
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>