You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Steve Short <ss...@postx.com> on 2003/03/25 19:01:59 UTC

RE: Synchronised??

Yes it's possible for multiple threads to call your service
concurrently.

Steve

> -----Original Message-----
> From: Scherer Pierre [mailto:scherer_pierre@ibelgique.com] 
> Sent: Tuesday, March 25, 2003 10:03 AM
> To: James-dev
> Subject: Synchronised??
> 
> 
> 
> Hi,
> 
> I have a question about the synchronisation of service.
> In fact, I log in Database when a mailet call the service 
> tracking!! But is it possible that more threads (several mail 
> on the server ) call this service? Or avalon gives the 
> garanty that, if a call is doing by a thread, it locks this service.
> 
> Thanks,
> 
> -Pierre
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
> 
> 

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


RE: Synchronised??

Posted by Scherer Pierre <sc...@ibelgique.com>.
It's a problem for me(crash database). If I put my class sychronised, does
it resolve the problem (or can not do that for a lower layer
implementation)?


Yes it's possible for multiple threads to call your service
concurrently.

Steve

> -----Original Message-----
> From: Scherer Pierre [mailto:scherer_pierre@ibelgique.com]
> Sent: Tuesday, March 25, 2003 10:03 AM
> To: James-dev
> Subject: Synchronised??
>
>
>
> Hi,
>
> I have a question about the synchronisation of service.
> In fact, I log in Database when a mailet call the service
> tracking!! But is it possible that more threads (several mail
> on the server ) call this service? Or avalon gives the
> garanty that, if a call is doing by a thread, it locks this service.
>
> Thanks,
>
> -Pierre
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>
>

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

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


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