title: How to create own calendar reminder in Java?
body: <p>We have a calendar in our web application. Events can be added to the calendar, and events will have some start date and end date. </p>
  
  <p>Events can also have a reminder. So, while adding an event, if a user decides to he notified of the event by a reminder email, the user can set the reminder value in the event. Similar to what we have in <a href="http://en.wikipedia.org/wiki/Microsoft_Outlook" rel="nofollow">Outlook</a>.</p>
  
  <p>For example, Event Name: Weekly Meeting </p>
  
  <p>Start date: 1st March, 10 AM</p>
  
  <p>Reminder: 1 hour (it can be 15min, 30 min, 1 hr, 2 hr, 1 day, 2 day, etc). </p>
  
  <p>So, in this case an email should be sent to the user before the event, that is, 1 hour before.</p>
  
  <p>An event table in the database has event name, start date, reminder.</p>
  
  <p>How do I implement this in Java? </p>