views:

80

answers:

2

I have a web service running on my dev box implemented using Spring-MVC 3.0. I have various JUnits that test against that service using RestTemplate. What I would like to do is have JMeter pick up those JUnits REST requests when I run them. However, to do that, I need to have Spring's RestTemplate send them to the proxy that I'm running JMeter on. So, the question is, how can I do that?

I've done something similar with CXF and their http:conduit and http:client stuff, but I really have no idea how to do this with Spring-MVC.

A: 

If understand correctly, you want the Jmeter script to Reset based on a JUnit RESET request, correct?

If so, might this be as simple as sending a JMeter a command line telling it to stop/start?

BlackGaff
Ah, damn typo... REST is what I meant.
AHungerArtist
A: 

Sadly, this was really easy.


Properties props = System.getProperties();
props.put("http.proxyHost", "localhost");
props.put("http.proxyPort", "9080");
AHungerArtist