Oh, yes. I didnt consider the Jdk1.4 support in app servers.
Best thing to do is to Check with DB2 documentation/support and find out whether
it supports Jobs like oracle. Hope it wud. :-)
-----Original Message-----
From: Stefan Frank [mailto:s.frank@(protected)]
Sent: Tuesday, August 05, 2003 7:54 PM
To: J2EEPATTERNS-INTEREST@(protected)
Subject: Re: where to put the schedular
Is this really such a good Idea?! The Timer starts a separate Thread for
Scheduling - and this will interfere with the Thread-Pooling Mechanisms
of most common App-Servers (Starting Threads in a Container was once
considered a no-no in j2ee: If I remember it right, then there are
mechanisms in the new JCA that allow you to request a thread from the
AppServer.) Almost every vendor formerly had some proprietary extensions
to perform at least basic Scheduling from inside the app-server - this
has finally resulted in the introduction of a TimerService(
http://www.theserverside.com/resources/article.jsp?l=MonsonHaefel-Column4)
TimerService's can be created at runtime, so reading in a Table and
setting up the Timers is possible. Using a TimerService should save you
from being tied to the Database and also eliminates the need for a
separate Box/process that runs outside your Appserver. But I'm not
completely sure, which server already supports 1.4. Does anyone have
more info on the Adaption of 1.4?!
cheers
stf
Rangarajan , Suresh ( Cognizant ) wrote:
> You can use the
java.util.Timer and TimerTask classes for this purpose.
> On startup, you can read the tables and setup the timer.
>
> But, you can not dynamically change the values in the table...
>
>
> -----Original Message-----
> From: Pradeep Kumar [mailto:pradeepk@(protected)]
> Sent: Tuesday, August 05, 2003 6:13 PM
> To: J2EEPATTERNS-INTEREST@(protected)
> Subject: where to put the schedular
>
>
> Hello friends,
>
> This may not be the right forum to ask this question. But I couldn't find the
> appropriate forum.
>
> I have requirement, wherein I will have to run 2 types of schedulers. I am
> using DB2 8.1 and WebSphere 5 running on windows.
>
> One scheduler, should wake up on a particular date and time defined in a
> table and then updates some other tables.
> Another scheduler, should wake up on a particular date and time defined in a
> table and then sends out emails.
>
> I think I have 3 options:
> 1. Define and configure the schedulers using the DB2 tools.
> 2. Build custom schedulers in my WebSphere application, that
> periodically checks the system date with scheduled date and then updates the
> relevant table and also sends out email using the Java mail APIs
> 3. write a stand alone java program and use a windows scheduler.
>
> These schedulers are purely back-end activities and do not depend on the user
> actions. The first option may be the appropriate one, but I am not sure about
> the implications.
>
> Your comments are appreciated.
>
> Thanks.
> Pradeep Kumar
> MindTree Consulting
> 91 80 6711777 Xtn: 2033
>
>
>
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
>
> ====================================================================
> Community Web Site (Core J2EE Patterns Catalog - Online Version):
> http://java.sun.com/blueprints/corej2eepatterns
> Getting Started (Beta Version):
> http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
> Get the book:
> http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
> List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing:
> email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
>
> ====================================================================
> Community Web Site (Core J2EE Patterns Catalog - Online Version):
> http://java.sun.com/blueprints/corej2eepatterns
> Getting Started (Beta Version):
> http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
> Get the book:
> http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
> List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing:
> email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
>
>
> ------------------------------------------------------------------------
>
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
> prohibited and may be unlawful.
>
> Visit us at http://www.cognizant.com
>
> ====================================================================
> Community Web Site (Core J2EE Patterns Catalog - Online Version):
> http://java.sun.com/blueprints/corej2eepatterns
> Getting Started (Beta Version):
> http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
> Get the book:
> http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
> List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing:
> email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)