Skip to Content
0

Neo SDK Deprecated httpClient.getConnectionManager().shutdown();

Jun 12, 2017 at 07:08 PM

73

avatar image

Hi,

In order to control the connections I'm using the following Java code from gamification to control the connection but seems that getConnectionManager().shutdown() is deprecated (NEO_SDK3.26.16).

// The default request to the Servlet will use // outbound-internet-destination HttpDestination destination = (HttpDestination) ctx.lookup("java:comp/env/" + GAMIFICATION_SERVICE_DESTINATION); // Create HTTP client httpClient = destination.createHttpClient();


HttpResponse gamificationServiceResponse = httpClient.execute(post);

// When HttpClient instance is no longer needed, shut down the // connection manager to ensure immediate // deallocation of system resources if (httpClient != null) { httpClient.getConnectionManager().shutdown();

Thanks and regards,

Ricardo

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers