[prev in list] [next in list] [prev in thread] [next in thread]
List: james-user
Subject: Re: Concurrency in Mailets?
From: Bosco So <bosco_groundspring () despammed ! com>
Date: 2003-07-29 17:13:57
[Download RAW message or body]
If the mailet life cycle like the servlet life cycle where there's only
one instance of a mailet in the system (and the service method is
entered by multiple threads)? If so, then not only do your class
variables appear only once, but also your instance variables - multiple
threads can step all over the same instance variables. This bug is hard
to detect because you won't encounter it until you start getting lots of
traffic.
>I'm curious about the following: is it possible that the instance of a
>mailet (or matcher) is executed more than once concurrently? This would
>have impact on the design of a custom mailet (using class fields, for
>example, could lead to problems), but I can't find anywhere whether this
>can occur or not.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic