Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Auto Email.

Auto Email.

2005-04-11       - By Darshan

 Back
Reply:     1     2     3  

Hi Robert,

  Thanks for your reply. I need some clarifications regarding the daemon
thread solution as i didn't worked on daemon threads.

  My current application's requests will be dispatched to a handler
classes from a servlet. Suppose if i create a normal thread from a handler
it will create a new thread for each request. Is it the same with daemon
threads? If yes, then there will be a multiple thread lookups to the DB.

 I am going through the Quartz. I have the same query regarding this
product also. Suppose if i create a instance of Job Scheduling code in a
servlet or a handler, will it create multiple threads which leads to
multiple lookups to the DB?

Thanks & Regards
Darshan



On Sun, 10 Apr 2005 06:13:25 -0400, Robert Taylor
<64rwtaylor05@(protected)> wrote:

>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) and include in the
body
>> of the message "signoff J2EE-INTEREST".  For general help, send email to
>> listserv@(protected) and include in the body of the message "help".
>>
>>
>
> ==========================================================================
>To unsubscribe, send email to listserv@(protected) and include in the body
>of the message "signoff J2EE-INTEREST".  For general help, send email to
>listserv@(protected) and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

©2008 junlu.com - Jax Systems, LLC, U.S.A.