RE: Struts, running email process in separate thread

2006-11-22 Thread Nitin M. Mandolkar
HI Levan I think the solution you are trying is good. But also look at this. What I will say. Don't create any thread from current action. Either put a entry in database. Like need to send a e-mail for [EMAIL PROTECTED] Write a daemon process using java or other language. This actually reads

RE: Struts, running email process in separate thread

2006-11-22 Thread Levan Dvalishvili
But this requires J2EE Container right? Levan Dvalishvili Support Lead  US Verticali,Inc (646) 736 - 6075 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 2:02 PM To: user@struts.apache.org Subject: RE: Struts, running email process

Re: Struts, running email process in separate thread

2006-11-21 Thread Leon Rosenberg
if you are on jdk 1.5 you may want to check the Executor interface. Its basically the same pattern, but removes complexity from your code. http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Executor.html regards Leon On 11/21/06, Levan Dvalishvili <[EMAIL PROTECTED]> wrote: Hi ! thi