File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes way of using scheduleAtFixedRate() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "way of using scheduleAtFixedRate()" Watch "way of using scheduleAtFixedRate()" New topic
Author

way of using scheduleAtFixedRate()

sonika khandelwal
Greenhorn

Joined: Jul 02, 2012
Posts: 3
Hello everyone....i am in need please help me :
Their is several report information in excel file in rows
rname repeatafter...many more columns
report1 5
report2 10
//repeatafter will email the report after 5 mins...similarly report2 will repeatafter 10 mins
I hava a web application which is reading excel file from particular location and emailing the result of excel file This is done in ReportMailerApp.java.

Now i have form a listener in which i have called a scheduleAtFixedRate()

my code was fully working when all the the reports are mailing at the same time......but when i have to schedule the task (i.e. emailing the report) for particular time which i mentioned in repeatafter....the code is not working......please telll me what to do....please tell me from basics.....because i am a fresher
sonika khandelwal
Greenhorn

Joined: Jul 02, 2012
Posts: 3
please help me this must be a very simple task....but since i am fresher i dont know
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39393
    
  28
Welcome to the Ranch

Your question is by no means clear. Do you mean you want to work out how to schedule sending your e-mails every 5 minutes?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14266
    
  21

sonika khandelwal wrote:the code is not working......

What does that mean? Does it compile or not? If you get errors from the compiler, then what exactly are the errors (copy & paste them here)? Or, does it compile but do you get an error when you run it? If yes, then what exactly is the error message? What exactly did you expect the code to do and what exactly really happens, and how does that differ from what you expected?

It's really difficult for someone else to help you if the only thing you say is "it's not working".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: way of using scheduleAtFixedRate()