How to close/terminate HTTP session from Jersey client side while communicating with BPMS REST endpoints ?
Issue
- In order to perform REST API calls to process execution server of
Business Central
, users are using the followingJersey
basedRESTful API
. Since the call gets first authenticated and and then the REST call is made, is there a way to ensure that the requestlogs-out
after the call completes? The motive behind this requirement is to ensure that HTTP based connections made underlying each RESTful request gets closed/terminated after a call completes, as sometimes the application server running theBusiness Central
applications show activeHTTP
connections.
com.sun.jersey.api.client.ClientResponse clientResponse = webResource
.type(MediaType.APPLICATION_XML)
...
.post(com.sun.jersey.api.client.ClientResponse.class, processinstanceid);
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.