• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

automated mailing functionality

 
Mahesh Bamane
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wish to make automated report generating and mailing application, can anyone help me for the same?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Much more could be said about these topics than can easily fit into a discussion forum. So you'll need to get a lot more detailed in what you're trying to do, and where you are stuck designing and/or implementing it.

Have you looked into reporting libraries like JasperReports (maybe in conjunction with the iReport GUI)?

Are you familiar with the JavaMail API that's used in Java to send email?
[ April 02, 2008: Message edited by: Ulf Dittmer ]
 
Mahesh Bamane
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually there is no such a problem in design, what I want that a report should be generated by the system on scheduled time and it should be sent across to everyone in the mailing list.
So here scheduling part also comes in to play.
So what I wanted to know, what kind of utilities I can really use to make this application?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides JasperReports and JavaMail, look into the java.util.Timer and TimerTask classes. They allow you to schedule recurring code executions. Very easy to use. Or you can use a cron-like tool to periodically run a Java executable.
 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use windows schedular to invoke your process at specified time. For that you need to write one .bat file and configure that with windows schedular (controlpanel-->Scheduled Tasks and add new task).
.bat file is responsible for to invoke a java class at specified time and your java class will take care of rest of the things like as you said generating report and email(use java mail API) it.
 
Manuel Leiria
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also take alook at Quartz Project to see if it fits your needs.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember to cover the case in which the mail server you connect to is temporarily out of service. You will need some sort of try again later design.

Bill
 
Mahesh Bamane
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey! Thanks a lot for all the help, I have already tried Timer and TimerTask classes.
Windows scheduling looks a better option for me.
I'll get back here again after trying this all.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic