users@glassfish.java.net

Re: A lock could not be obtained within the time requested

From: <forums_at_java.net>
Date: Wed, 7 Dec 2011 10:38:44 -0600 (CST)

I only can recommed to every one how is facing this problem and does not
depend necessary on persistent timers, to switch to non persistent one. I did
and since the problem never ocurred again: [code] Timer timer; TimerService
timerService; TimerConfig timCfg = new TimerConfig();
timCfg.setPersistent(false); this.timer =
timerService.createSingleActionTimer(10000, timCfg); [code] you can check if
you are still using persistent timers by calling
http://localhost:8080/ejb-timer-service-app/timer in your browser while GF is
running regards, j.

--
[Message sent by forum member 'jcite']
View Post: http://forums.java.net/node/850201