× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe Pluta wrote:

From: Mike Burdette

What is the best way to fire a servlet at a specified time?


I haven't done this yet, Mike, but I've thought about it.  It seems to
me that if you use a tool like Brad Stone's GETURI (I think Scott
Klement may have an example of something similar) you could schedule an
RPG program to run that would simply hit the servlet with an HTTP
request of your choosing.

Timing Servlets is a problem in the J2EE world, because to my knowledge current J2EE appServers do have a Timer-Service (with current i mean j2ee 1.4 server, like the upcomming WAS 6), but this service only calls EJBs or in other words, TimerBeans.


To get an idea how the Timer Service works, see this:
http://www-106.ibm.com/developerworks/websphere/downloads/WASTD6Support.html
(look at the Timer Tutorial at the bottom of the page)

Besides the timer service, which is a little bit too EJB centric, there is another interessting aspect. IBM and BEA working on an that spec: http://dev2dev.bea.com/technologies/commonj/index.jsp

So i cant give you a J2EE solution, there are some problems at the moment:

1. you need WAS 6.0 (which is IMO not available yet)
2. since you are on iSeries, you will have to wait even more for WAS6 ;)
3. you cant trigger Servlets

But perhaps it would be a good idea to implement that feature as a TimerBean someday, dont see a reason why this must be a Servlet, in fact it seems it doesnt make much sense to design it as a servlet. But i dont know the complete story of your task...


Marc Logemann http://www.logemann.org



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.