• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request getting hanged..

 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are building a web application using struts and websphere. One of the modules is that of report generation.
From the parent screen when the user clicks on run report button a new window opens up which displays the result after some time (time taken to get the data from the database). While the first report is getting generated if the user clicks again on the run report button another pop up opens up which has the same behaviour.
The problem is if there are 2 pop up openened and the report is still not generated the parent screen hangs that is if the user clicks on a button on the parent screen the application does not responds.
However as soon as 1 of the reports gets generated the parent application starts responding.
Why is this happening? Is it because of request object not free or something else?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is unlikely that this is an issue at the web level unless you've coded your actions with sync problems. Is your database perhaps blocking one of the threads? Do you have synchronization blocks in your actions?
 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response Bear.
Actually when the pop up opens , till the time the data is rendered an image of "Report generating" is displayed to the user.This is done using AJAX.
May be that is blocking the request.
Even otherwise how does the request behave? Can there be multiple request for the same user getting processed at the same time?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!