JAXB.marshal blocking webservice call

333
September 02, 2017, at 07:26 AM

I am using Spring WebserviceTemplate to make SOAP call to a service. I ran performance test to see how it behaves under load. I also have a interceptor to copy the header parameters from my incoming request over to the service I am calling.

@Component
public class HeaderPropagationInterceptor implements ClientInterceptor {
    @Override
    public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException {
        SoapMessage request = (SoapMessage) messageContext.getRequest();
        Result result = request.getSoapHeader().getResult();
        JAXB.marshal(getRequestHeader(), result);
        return true;
    }

When I ran the performance test , I see the below statement blocking for 4-5 seconds

JAXB.marshal(getRequestHeader(), result);

Is there a reason why this might be blocking?

Rent Charter Buses Company
READ ALSO
what this program prints the wrong reutls [duplicate]

what this program prints the wrong reutls [duplicate]

This question already has an answer here:

223
Data not inserting into mysql database : android and php issue

Data not inserting into mysql database : android and php issue

I know this question has been asked many timesbut nothing worked

253
Android firebase robo testlab gcloud client not taking in login arguments

Android firebase robo testlab gcloud client not taking in login arguments

I am trying to setup an robo test with gcloud test lab following this: https://cloudgoogle

292