Icey Thomas [
http://community.jboss.org/people/icey.xiong] created the discussion
"the timer service has beean disabled,please add a <timer-service> entry into
the ejb section"
To view the discussion, visit:
http://community.jboss.org/message/632199#632199
--------------------------------------------------------------
Dear all,
I want to create a timer-service on JBoss As 7.0.here is my work:
@Singleton
@Local(UserLocal.class)
@Startup
public class User implements UserLocal
{
@Resource
TimerService timer;
@Timeout
public void run(Timer timer)
{
System.out.println("time out!");
}
@PostConstruct
public void scheduleTimer()
{
timer.createTimer(new Date(),1000*1*60,null);
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/632199#632199]
Start a new discussion in EJB Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]