Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Multithreading in JSP

 
Shanu Bannerjee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JSP page which does database(mysql) access to retrieve data. This process takes a long time and the page is blocked till then. I wanted to know if it is possible for me to do the database access and simultaneously navigate through other pages in the software. Just wanted to know the best possible solution for this. Can I use multithreading for this wherein I can access the database using one thread and with other thread I can continue the GUI processing or navigate through some other page. Please give me an idea of all possible solution for this.
Hope I am clear,
Shanu
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Handling long-running queries has been discussed frequently on the JSP and servlet forums. You should browse the last few weeks of posts or do a search.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic