B
biswa
HI.
I have a synchronized block where i am creating a temp table and
deleting it in the same method after processing. I ve to make it a
synchronized to avoid other requests from accessing the temp table
while the other request is processing.
But strangely, i can see more than one requests entering to the method
at the same time. If there are two requests at the same time, one
tries to delete the temp table while other is accessing.
How is it possible although the method is synchronized it is accessed
by more than one request at the same time. I am calling the mothod in
JSP file. Am i missing something?
Any help would be great.
Thanks.
I have a synchronized block where i am creating a temp table and
deleting it in the same method after processing. I ve to make it a
synchronized to avoid other requests from accessing the temp table
while the other request is processing.
But strangely, i can see more than one requests entering to the method
at the same time. If there are two requests at the same time, one
tries to delete the temp table while other is accessing.
How is it possible although the method is synchronized it is accessed
by more than one request at the same time. I am calling the mothod in
JSP file. Am i missing something?
Any help would be great.
Thanks.