Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 47137 invoked from network); 23 Jul 2010 18:13:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 18:13:43 -0000 Received: (qmail 9841 invoked by uid 500); 23 Jul 2010 18:13:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 9707 invoked by uid 500); 23 Jul 2010 18:13:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 9698 invoked by uid 99); 23 Jul 2010 18:13:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 18:13:39 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 18:13:32 +0000 Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta05.westchester.pa.mail.comcast.net with comcast id lVN61e0041ZXKqc55WDBib; Fri, 23 Jul 2010 18:13:11 +0000 Received: from [192.168.1.202] ([69.143.104.234]) by omta21.westchester.pa.mail.comcast.net with comcast id lWDB1e00153T2VR3hWDBhF; Fri, 23 Jul 2010 18:13:11 +0000 Message-ID: <4C49DBB5.4030405@christopherschultz.net> Date: Fri, 23 Jul 2010 14:13:09 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Fire off asynch task in Tomcat. References: <4C47CFFD.1090603@gmail.com> <4C487839.1090203@christopherschultz.net> <4C487982.1050704@christopherschultz.net> <4C48D725.5060207@gmail.com> In-Reply-To: <4C48D725.5060207@gmail.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric, On 7/22/2010 7:41 PM, Eric P wrote: > I'll probably go w/the email queue/database table approach. All the > points André and Christopher raised gave me further insight into the > robustness of this approach (loose coupling w/the app, no extra lib > dependencies, emails not lost if the app goes down, etc.). Also, the > email queue table can serve as a nice log of emails processed. Heh, I hadn't thought of that point, which is an excellent one. Another (potential) advantage of using a database to hold the "queue" is that you can then choose some other programming language to do the actual email sending if that's more convenient for you. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJ27UACgkQ9CaO5/Lv0PAgEQCcDZlPk6RlfDPcCdANbTlvht1e 3SAAoKmHbkqZdFkPgTLYXnJkwApfQE2W =GjNk -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org