RE: using org.restlet.Client

2007-05-29 Thread Jerome Louvel
erome > -Message d'origine- > De : Stian Soiland [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 23 mai 2007 17:52 > À : discuss@restlet.tigris.org > Objet : Re: using org.restlet.Client > > > On 17 May 2007, at 15:23, Jim Alateras wrote: > > > Jero

Re: using org.restlet.Client

2007-05-23 Thread Stian Soiland
On 17 May 2007, at 15:23, Jim Alateras wrote: Jerome, I am getting deadlocks when sharing the Client across multiple requests. Haven't had time to resolve but it seems like a look in commons-httpclient. I had to revert back to instantiating a new instance of Client per request. I experie

RE: using org.restlet.Client

2007-05-17 Thread Jerome Louvel
origine- > De : Jim Alateras [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 17 mai 2007 16:24 > À : discuss@restlet.tigris.org > Objet : Re: using org.restlet.Client > > Jerome Louvel wrote: > > Hi Jim, > > > > Client connectors are intended to be shared by mu

Re: using org.restlet.Client

2007-05-17 Thread Jim Alateras
Jerome Louvel wrote: Hi Jim, Client connectors are intended to be shared by multiple applications and multiple concurrent requests. As a consequence, they are thread safe. Jerome, I am getting deadlocks when sharing the Client across multiple requests. Haven't had time to resolve but it seems

RE: using org.restlet.Client

2007-05-17 Thread Jerome Louvel
Hi Stian, > So this part: > >public void handle(Request request, Response response) { > init(request, response); > .. > } > > Wouldn't tie the client to that particular request and response? > (That's the impression I got from reading the source, hence I make > new Clie

Re: using org.restlet.Client

2007-05-17 Thread Stian Soiland
On 17 May 2007, at 11:59, Jerome Louvel wrote: Client connectors are intended to be shared by multiple applications and multiple concurrent requests. As a consequence, they are thread safe. So this part: public void handle(Request request, Response response) { init(request, respo

RE: using org.restlet.Client

2007-05-17 Thread Jerome Louvel
2007 09:13 > À : discuss@restlet.tigris.org > Objet : using org.restlet.Client > > Can I use one instance of org.restlet.Client across multiple > (possible > concurrent) requests. (i.e. is it thread-safe). > > cheers >

using org.restlet.Client

2007-05-17 Thread Jim Alateras
Can I use one instance of org.restlet.Client across multiple (possible concurrent) requests. (i.e. is it thread-safe). cheers