I am integrating two java web applications that are implemented in slightly different ways - one uses servlets, the other uses Jersey Restful APIs. The first application is the front end and that communicates with the Restful service for data. I want to simulate communication delays between the web front end and the servlets and between the servlets and the Restful apis.
I have access to the code for both apps but I am hoping I can put the delay on communications in and out of the servlet.
Is there some way to get in front of the communications and delay it being passed to the rest of the app (and the other way round..)