Hi, In this tutorial I am going to explain you how you can create a Quartz job to send email and schedule it for every 60 second.
Lets create a maven project. Following steps will show you how to create a maven archetype (You can skip it by just copy the project sample)First create a maven archetype. To create a maven archetype you should have maven installed in your system. I have maven2 installed on my system.
Open terminal or command prompt and Type
mvn archetype:generate
I will download all archetype form central repository, and ask a number to choose the project type you want to generate. you can also filter the projects by providing filter option.
mvn archetype:generate -Dfilter=org.apache.maven.archetypes:maven-archetype-quickstart
It will show you only one option and ask to enter a number for archetype. you can proceed with default.
Now it will ask for group Id: com.tarun
archetype id: emailjobscheduler
packeage name: com.tarun.sample
It will ask for confirmation and generate a project sample for you.
In the next post I will show you how create spring email service..
thi
Lets create a maven project. Following steps will show you how to create a maven archetype (You can skip it by just copy the project sample)First create a maven archetype. To create a maven archetype you should have maven installed in your system. I have maven2 installed on my system.
Open terminal or command prompt and Type
mvn archetype:generate
I will download all archetype form central repository, and ask a number to choose the project type you want to generate. you can also filter the projects by providing filter option.
mvn archetype:generate -Dfilter=org.apache.maven.archetypes:maven-archetype-quickstart
It will show you only one option and ask to enter a number for archetype. you can proceed with default.
Now it will ask for group Id: com.tarun
archetype id: emailjobscheduler
packeage name: com.tarun.sample
It will ask for confirmation and generate a project sample for you.
In the next post I will show you how create spring email service..
thi
No comments:
Post a Comment