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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to