Hi Isuru, Previously I have implemented with one single DefaultHttpClient. But in that scenario we have to return the DefaultHttpClient object for other operation as well (I can't remember the other reason why it changed) . Please see the "listSubscribedCartridgeInfo" method. Also IMO it didn't cause for the performance as well, because we have clear the object. WDYT ?
On Tue, Mar 25, 2014 at 3:30 PM, Isuru Perera <[email protected]> wrote: > Hi, > > I see that in every method, A DefaultHttpClient is initialized and in the > end the connection manager is closed. > > However in RestClient (org.apache.stratos.cli.RestClient), I see that it > is wrapped by creating a new DefaultHttpClient, which disables SSL > verification. > > httpClient = (DefaultHttpClient) WebClientWrapper.wrapClient(httpClient); > > I'm just asking whether it's okay use a new client in every method? > > Thanks! > > Best Regards, > > -- > Isuru Perera > Senior Software Engineer | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : [email protected] / [email protected] phone : +94 772492511 blog : http://manulachathurika.blogspot.com/
