You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Xiaobo Yang <xi...@gmail.com> on 2011/06/27 00:39:17 UTC

Can httpclient be defined as static when using in a multithreading environment?

Hi, I've read http://hc.apache.org/httpclient-3.x/threading.html. Is
it safe to define HttpClient as static below? - Thanks, Xiaobo

static HttpClient client = new HttpClient(new
MultiThreadedHttpConnectionManager());

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org