Skip to Content

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


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,


Add comment
10|10000 characters needed characters exceeded

0 Answers