Darshan,
Write a daemon process that "wakes up" every 24 hours and queries the
database for all users whose passwords have "expired".
Iterate over the returned collection and email them their new password.
The daemon process could be implemented using the
java.util.Timer and
java.util.TimerTask or a more robust solution might be to use Quartz.
Your process would simple use a POJO service which would delegate the
database call to a DAO to retrieve the data. The service could then use
the Java Mail API or maybe an "email service" to facilitate creating and
sending the email.
If you wanted to get really fancy you could use Spring to "wire up" your
components.
No need to involved Tomcat or MVC.
/robert
Darshan wrote:
> Hi,
>
> In our project one of the requirement is "the password of a user has to
> become invalid for each 100 days from the last password change date, and
> system should generate a new password and send it to the user". The
> technical details as follows.
>
> Plain Java code (No EJBs),Oracle DB,Mail API for emailing, MVC and DAO
> patterns, Tomcat 4.1
>
> The emailing component will be integrated with the current system and the
> component should run only once per day to check the expired passwords.
> There should not be any end user interaction required to achieve this.
>
> Please share your ideas on this.
>
> Thanks in advance.
>
> Regards
> Darshan
>
> ===========================================================================
> To unsubscribe, send email to listserv@(protected)
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".
>
>
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".