Well the configuration is valid and set up as per requirement.
Weblogic uses jdk1.5 but my application needs to use compile time JDK1.4 and runtime JRE1.5 as in this thread I am taking a handle to a EJB which is again compiled in jdk1.4 and run in jdk1.5 runtime.
Anyways I dont have any issues with configurtion cause thats how it has to be.
I could have scheduled this using unix cron but the requirement is to startup up with the server only. This has to start up with weblogic.
Well coming back to the question i raised. I have used Quartz for this.I found this pretty handy.
For more info here is the url
http://www.opensymphony.com/
Timer and Timer task are not good options as they have a overhead and performance hit. I found several articles for this.
Here is what i have come up with now.
I have 2 classes which do 2 different tasks And the scheduled them in one class.
This class is for task 1.
This class is for task 2.
This is my main scheduler.