I read that Google App Engine Java development server only runs one servlet thread.
I would like to simulate two threads running in parallel so that in debug mode I can pause one of them and observe the correct behaviour of the other.
Is this possible at all? In what other ways can I simulate such a scenario to test for thread safety?
(in particular, I am trying to observe the behaviour of jdo transactions)
p.s. I do have <threadsafe>true</threadsafe> in appengine-web.xml
If dropping to the command line is acceptable, you could open two terminals and use cURL in each to hit your servlet.
I read that Google App Engine Java development server only runs one servlet thread.
I would like to simulate two threads running in parallel so that in debug mode I can pause one of them and observe the correct behaviour of the other.
It seems that when I place a breakpoint, and make the call from two different tabs in Chrome, only one of them breaks.
Is this possible at all? In what other ways can I simulate such a scenario to test for thread safety?
(in particular, I am trying to observe the behaviour of jdo transactions)
p.s. I do have <threadsafe>true</threadsafe> in appengine-web.xml
Ok. The problem was different all together. It must have been Chrome that didn't like sending more than one request to the same server while one was hanging. Sending one from Chrome and another one from Firefox did it. So after all, the Google App Engine Java Development server can handle concurrent requests by different threads. what I read, was wrong.