Can java.util.Timer & TimerTask be used within ejb container? 2003-11-18 - By SooKyung Lim - Sun PS Korea
Back I use Timer & TimerTask in EJB container. You can make more than one timers which has particular schedule. Until now, I didn't yet meet performance problem, and so on.
peng wang wrote:
> Hi All, > > As J2ee1.4 having not been released and its > TimerService cann't be used at this moment, I have > thought use java.util.Timer & TimerTask for our > timer related tasks. > > I wonder if java.util.Timer & TimerTask can be used > WITHIN ejb container. Also I note that for each timer > task there should be a Timer instance, and hence one > thread is needed to check whether the time is due for > the task. So does using Timer have a negative effect > on overall performance? > > Thanks, > > wp > > __ ____ ____ ____ ____ ____ ______ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > ==================================================================== > Companion Site: http://www.corej2eepatterns.com > J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns > List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html > Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
-- SooKyung Lim (x85245) Java Project Engineer Professional Services, Sun Microsystems Korea TEL : 82-2 2193 5245 Mobile : 82-19-293-2931
ASEM Tower 15-16th FL., 159-1, Samsung-dong Kangnam-Ku,Seoul, Korea 135-798
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|