[jboss-user] [EJB3] - JBoss AS 7.0.0.Final And EJB 3.1 Times Service Problem

Paata Lominadze do-not-reply at jboss.com
Sun Jul 24 09:34:41 EDT 2011


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&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110724/38d004f1/attachment.html 


More information about the jboss-user mailing list