Your topic says Spring 2.5. The task namespace was not added until 3.0. I see you are still importing the 3.0 namespace in your XML though. If you are using Spring 2.5 libs, I suggest you upgrade if you can, that is a very old version of Spring.
I have already added these line in my spring 2.5 dispatcher-servlet.xml file .This is working on my local server but not on live server like if i want to schedule for every 2 mins it is working on localhost but the same is not working for a particular day like if want it to run on a particular day like for example thursday or friday its not working neither on localhost nor on liveserver.
exp:<b>cron="0 0 9 ? * THU,FRI,SAT" </b>could you please tell me the problem if their is any with this line. For the full code please refer above
P.S :-- I have already imported all spring 3 jar file pom.xml
I have already added these line in my spring 2.5 dispatcher-servlet.xml file .
Why do you keep saying 2.5 if you are using Spring 3. Which are you using Spring 3 or Spring 2.5? If you are using Spring 2.5 that is a problem. If you are using Spring 3 are you defining the scheduler in the root context? It belongs there not in the servlet context.
Is com.java.db.MessageSheduler the fully qualified path to the correct class? if so Scheduler is spelled wrong. Also does it contain a method called createCSVMail?
Also try changing your cron to fire every 5 minutes so you can verify everything else works and then try to get fancier with the cron