[ajug-members] Scheduler in Webogic 8.1 environment ?
sony.antony at gmail.com
Tue Apr 10 16:15:04 EDT 2007
First of all :
Thank you very much Joe for the javax.ejb.Timer. This is exactly what
we were looking for.
I also came across java.util.Timer, which will execute a background
thread to do teh task
Thanks everybody for help.
On 4/10/07, Les Hazlewood <les at hazlewood.com> wrote:
> Its important to note that the Timer references Joe makes are EJB
> specific APIs, i.e. those that require an application server. You're
> operating in a Weblogic environment, so this isn't really an issue for
> you (as is obvious by the title of this thread), but I make the
> distinction for other folks.
> I have used Quartz in many JEE and JSE environments, both without
> incident. It also supports clustered deployments. I highly highly
> recommend it - its a fantastic little library. But, if you're already
> in an app server environment, javax.ejb.Timer is probably the way to go
> (unless your app server has problems clustering timed tasks, which
> Quartz could help out with).
> Even better, if you use Spring 2.0, you can use Spring's TaskExecutor
> support, which abstracts away the implementation details, be it Quartz,
> javax.ejb.Timer or java.util.Timer. This is the clean way to go and
> allows you to configure easily based on your environment (app server,
> tomcat, standalone app, etc). Super clean.
> On Sat, 7 Apr 2007 14:17:44 -0400, "Joe Sam Shirah"
> <joe_sam at bellsouth.net> said:
> > Hi Sony and Barry,
> > Timers were introduced in J2EE 1.4. This is probably the "blessed"
> > way
> > since user threads are pretty much frowned on in managed environments.
> > While Quartz specifically says "virtually any J2EE or J2SE
> > application..." I
> > would double verify potential thread behavior before using it or any
> > other
> > option.
> > That's not to put down Quartz or others, just another consideration,
> > although it's one that is often overlooked or ignored. I have a client
> > with
> > an architect who was once a Sun employee. He was pooh-poohing my design
> > until he finally said, "Why do you do it x-way?" I responded, "No user
> > threads in JEE." After a few moments he said, "Oh, yeah..."
> > For info on Timers, see:
> > ONJava.com -- Using Timers in J2EE Applications
> > http://www.onjava.com/pub/a/onjava/2004/10/13/j2ee-timers.html
> > Using the Timer Service
> > http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Session5.html
> > JSR 236: Timer for Application Servers
> > http://jcp.org/en/jsr/detail?id=236
> > Joe Sam
> > Joe Sam Shirah - http://www.conceptgo.com
> > conceptGO - Consulting/Development/Outsourcing
> > Java Filter Forum: http://www.ibm.com/developerworks/java/
> > Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
> > Going International? http://www.jguru.com/faq/I18N
> > Que Java400? http://www.jguru.com/faq/Java400
> > ----- Original Message -----
> > From: "Barry Hawkins" <barry at alltc.com>
> > To: "General AJUG membership forum (100-200 messages/month)"
> > <ajug-members at ajug.org>
> > Sent: Saturday, April 07, 2007 12:29 PM
> > Subject: Re: [ajug-members] Scheduler in Webogic 8.1 environment ?
> > > If there is a JSR and an implementation, I don't know anyone using it.
> > > The standard that has emerged (rather than some JCP attempt at
> > > innovation by committee) is Quartz. Pretty excellent library for
> > > scheduling of automated tasks in Java.
> > >
> > >  - https://quartz.dev.java.net/
> > >
> > > Sony Antony wrote:
> > > > Is there a J2EE level specs for job scheduling ?
> > > > If not is there one provided by Weblogic server 8.1 ?
> > > >
> > > > We want certain jobs to run at specified time.
> > > >
> > > > Thanks
> > > > --sony
> > > [...]
> > >
> > > --
> > > Barry Hawkins
> > > All Things Computed
> > > site: http://www.alltc.com
> > > weblog: http://www.yepthatsme.com
> > >
> > > Registered Linux User #368650
> > >
> > > _______________________________________________
> > > ajug-members mailing list
> > > ajug-members at ajug.org
> > > http://www.ajug.org/mailman/listinfo/ajug-members
> > _______________________________________________
> > ajug-members mailing list
> > ajug-members at ajug.org
> > http://www.ajug.org/mailman/listinfo/ajug-members
> ajug-members mailing list
> ajug-members at ajug.org
More information about the ajug-members