• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

time consuming DB work from servlet.....

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If servlet's doXXX() method does "some work" with the DB which takes a bit of time and many users want to do this "some work".
And I was thinking of using a multithread doing this.. (like connection pooling )
Say, have a separate class(extends thread) that does "some work" with the DB.... but then many clients call servlet's doXXX() method... how is this going to work? I just could not combine those two together to think of a solution.
Can anyone suggest a right way of doing this ?
Thanks in advance.
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Servlets are by default Multithreaded. So u need not bother about creating a multithreaded class and then doing the DbOperation .

 
reply
    Bookmark Topic Watch Topic
  • New Topic