Paata Lominadze [
http://community.jboss.org/people/paata] created the discussion
"JBoss AS 7.0.0.Final And EJB 3.1 Times Service Problem"
To view the discussion, visit:
http://community.jboss.org/message/617234#617234
--------------------------------------------------------------
Hi all,
I'm trying to test simple example about timer service.
1.Application Server :
| 7.0.0.Final | Lightning | Web Profile Only (*Java EE6 Certified*) |
2. Here is Code Example
@Singleton
@Startup
@LocalBean
public class SMSSender {
@PostConstruct
@Schedules({ @Schedule(hour = "*", minute = "*", second =
"*/5"),
@Schedule(hour = "*", minute = "*", second =
"*/10") })
public void myStart() {
System.out.println("Start ....................");
System.out.println(getClass().getName() + ": " + new Date());
System.out.println("Finished ....................");
}
}
But output printed only once :
17:20:48,639 INFO [stdout] (MSC service thread 1-5) Start ....................
17:20:48,640 INFO [stdout] (MSC service thread 1-5)
com.info.billing.sms.messages.beans.sessoin.SMSSender: Sun Jul 24 17:20:48 GET 2011
17:20:48,640 INFO [stdout] (MSC service thread 1-5) Finished ....................
Did I miss something or EJB 3.1 Features is not implemented on JBoss AS 7.0.0.Final yet ?
_____________________
Regards,
Paata Lominadze.
Magticom LTD.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/617234#617234]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]