How to design and code my application in Java to allow multiple client threads to run concurrently throughout the application without interfering with one another?
Now, i hit problem when i try to send 2 threads concurrently, and when second thread is coming in, it overwrites the variable instance value which belong to first thread. So, the first thread will get a wrong value from the variable instance to proceed.
Keep in mind that if you're testing this by running multiple browsers on the same client computer, depending on the browser it can look to the server like requests from the same client, and therefore belonging to the same session.
Joined: Mar 10, 2010
I am using a Action called SamleAction.java
Declared a static variable count and incrementing it when ever the method is called.
in logging the references of request and response you can see the following