Hi Ralf, 

I haven't actually tried this, but perhaps a TimerControl might suite your 
needs.  I believe that you can instantiate a jdbc control from a timer control 
and you could call your jdbc control function from the timer's callback.  

I think there might be some related documentation located at: 

http://beehive.apache.org/docs/1.0/controls/overview.html



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 5:08 AM
To: [email protected]
Subject: Scheduled Job

Hi
I have a BEA Weblogic 9.2 PageFlow Web Application. The Application 
uses a JdbcControl to access a Database. Everything works fine. 
Now i need to schedule some tasks. The JdbcControl has the complete 
functionality i need to support the tasks. So it makes sense to use 
it. 
My first idea was to create a HttpServlet which starts a Timer and 
is loaded at startup. Within the TimerTask's run() methode i planned 
to use the JdbcControl to process the tasks. Everything sounds good 
but it doesn't work. The Problem is that Controls will not be 
initialized in Pojo's. The only way i found to initialize them was to 
use the org.apache.beehive.controls.test.container.
ControlTestContainerContext.
I don't think that it is a good idea to use a not supported 
feauture. So my question is:

How can i automatically schedule Tasks which uses Controls? 
The scheduled Task's should start at Application startup and run 
every 10 minutes.

Thanks for your help...


       
---------------------------------
Got a little couch potato? 
Check out fun summer activities for kids.

Reply via email to