You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "USHAKOV, Sergey" <s....@chemitech.ru> on 2011/04/17 22:22:53 UTC

Mailet container multithreading

Hi all,

I've got a question on mailet container mode of operation. It can be
configured to operate in multiple threads. Now what about matcher and mailet
instances? Does every spool manager thread get its own set of
matchers/mailets? Is it a good idea for matchers and mailets to assume that
no instance of theirs will get its matches()/match() method invoked
simultaineously in different threads?

Thanks in advance,
Sergey


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Mailet container multithreading

Posted by Stefano Bagnara <ap...@bago.org>.
2011/4/17 USHAKOV, Sergey <s....@chemitech.ru>:
> Hi all,
>
> I've got a question on mailet container mode of operation. It can be
> configured to operate in multiple threads. Now what about matcher and mailet
> instances? Does every spool manager thread get its own set of
> matchers/mailets? Is it a good idea for matchers and mailets to assume that
> no instance of theirs will get its matches()/match() method invoked
> simultaineously in different threads?

No.
http://james.apache.org/mailet/api/apidocs/org/apache/mailet/Mailet.html#service(org.apache.mailet.Mail)
---
Mailets typically run inside multithreaded mailet containers that can
handle multiple requests concurrently. Developers must be aware to
synchronize access to any shared resources such as files and network
connections, as well as the mailet's fields
---

Stefano

> Thanks in advance,
> Sergey
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org