How to close/terminate HTTP session from Jersey client side while communicating with BPMS REST endpoints ?

Solution Unverified - Updated -

Issue

  • In order to perform REST API calls to process execution server of Business Central , users are using the following Jersey based RESTful API. Since the call gets first authenticated and and then the REST call is made, is there a way to ensure that the request logs-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 the Business Central applications show active HTTP 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.