Managing Service Headers in Java Applications
When you call a method on a service, the response header for the service may include important information that is required for subsequent requests. Some method calls require information from a previous call to the service, such as tracking information that indicates which server handled the previous request. For example, a wait()
request must be routed to the same server that handled the primary request.
When writing a Java application, when a method requires the header to include information from the return header of a previous method call, you must include code to copy the response header into the bibus » biBusHeader object. Before each method call on a service, you should update the header based on the response header value from the previous call. After retrieving the response header, clear the headers before setting the bibus » biBusHeader to the value of the response header.