tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjorn Danielsson <bjorn-apa...@lists.cuspycode.com>
Subject Re: Spooky org.terracotta.quartz.skipUpdateCheck
Date Mon, 21 Jul 2014 10:53:33 GMT
Thanks Andy. Here is the code I used:

package foo;

import javax.ejb.*;
import java.util.logging.Logger;

@Singleton
@Lock(LockType.READ)
@Startup
public class BugBean {
    static final Logger logger = Logger.getLogger(BugBean.class.getName());

    @Lock(LockType.WRITE)
    @Schedule(second="*/5", minute="*", hour="*")
    public void spam() {
	logger.info("Spam spam spam");
    }

}

-- 
Bjorn Danielsson
Cuspy Code AB


Andy Gumbrecht <agumbrecht@tomitribe.com> wrote:
> I'll check why this would block your deployment. It really should not hang.
>
> Andy.
>
> On 21/07/2014 12:11, Bjorn Danielsson wrote:
>> Hi,
>>
>> I noticed that all @Schedule methods stop working after hot
>> redeployment on one of my machines, and the culprit turned out
>> to be that I had forgotten to remove this from system.properties
>> after upgrading the machine to TomEE 1.6.0 a long time ago:
>>
>> org.terracotta.quartz.skipUpdateCheck=true
>>
>> This strange behaviour remains in today's 1.7.0-SNAPSHOT.
>>
>> Removing the line makes everything work again.
>>
>> I just thought I'd mention it here for the search engines.
>>

Mime
View raw message