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 followingJerseybasedRESTful API. Since the call gets first authenticated and and then the REST call is made, is there a way to ensure that the requestlogs-outafter 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 Centralapplications show activeHTTPconnections.
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
