On Fri, Apr 01, 2005 at 11:45:40AM +0100, Mark Benussi wrote:
: I would place your e-mail in a MailManager that queues the messages and
: sends them out on a TimerTask (Every 10 seconds???).
Why not just use JMS? The servlet puts messages in a queue and returns
to the user. In turn, a queue liste
Ya, you can open a new thread which has the sole job of sending the email
then dying. The only drawback is if sending the email hangs, then tomcat
could hang unless you make the thread a daemon thread.
-Tim
Steve Vanspall wrote:
Hi there,
I am concerned that opening a thread in my serlvet using
> Sent: 01 April 2005 11:39
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: [OT] Proper way to open threads in a servlet
>
> Your question is not really Tomcat so I put it Off Topic.
>
> On Fri, 1 Apr 2005 15:24:10 +1000
> "Steve Vanspall" <[EMA
coordinate with the MailManager.
-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED]
Sent: 01 April 2005 11:39
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: [OT] Proper way to open threads in a servlet
Your question is not really Tomcat so I put it Off Topic.
On Fri, 1
Your question is not really Tomcat so I put it Off Topic.
On Fri, 1 Apr 2005 15:24:10 +1000
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am concerned that opening a thread in my serlvet using new Thread(Runnable)
> style code, is causing a massive hang in my system.
>
I don't
Hi there,
I am concerned that opening a thread in my serlvet using new Thread(Runnable)
style code, is causing a massive hang in my system.
Basically what the thread does is email people to notify them of a change in an
order on the system.
I want the emails to be sent in a separate thread so