This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

way of using scheduleAtFixedRate()

 
sonika khandelwal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me this must be a very simple task....but since i am fresher i dont know
 
Campbell Ritchie
Sheriff
Pie
Posts: 50251
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15490
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic