cancel
Showing results for 
Search instead for 
Did you mean: 

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

rgsoares
Discoverer
0 Kudos

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

Accepted Solutions (0)

Answers (0)