In an ASP Engine application development server, how can I simulate parallel threads for security?

I read that the Google App Engine Java development server only works with one servlet thread.

I would like to simulate two threads working in parallel so that in debug mode I could pause one of them and observe the correct behavior of the other.

It seems that when I put a breakpoint and make a call from two different tabs in Chrome, only one of them breaks.

Is this even possible? What other ways can I simulate such a scenario to check thread safety?

(in particular, I am trying to observe the behavior of jdo transactions)

ps I have <threadsafe>true</threadsafe> in appengine-web.xml

+4
source share
2 answers

Ok The problem was different. Chrome must not have wanted to send more than one request to the same server while it was hanging. Sent it from Chrome and the other from Firefox. After all, the Google App Engine Java development server can handle concurrent requests across multiple threads. what i read was wrong.

+1
source

If switching to the command line is acceptable, you can open two terminals and use cURL in each to get into your servlet.

0
source

Source: https://habr.com/ru/post/1412096/


All Articles