Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

way of using scheduleAtFixedRate()

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please help me this must be a very simple task....but since i am fresher i dont know
 
Marshal
Posts: 73953
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic