Solved

Simulating slow communications in Java

Posted on 2013-06-19
3
165 Views
Last Modified: 2013-07-04
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..)
0
Comment
Question by:MWilliamsBolton
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 39259591
A simplistic implementation could be to use a ServletFilter and use Thread.sleep
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 250 total points
ID: 39263022
You can use this. there is no need to change code.
http://www.dallaway.com/sloppy/

this is also an option:
http://www.loband.org/loband/simulator.jsp
0
 

Author Closing Comment

by:MWilliamsBolton
ID: 39299649
Thanks to both for the guidance
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now