Skip to Content

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

Jun 12, 2017 at 07:08 PM


avatar image
Former Member


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,


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

0 Answers