• 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

Staying Connected?

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to organize my thoughts for JDBC 2, and I would like to know if keeping a connection open for an entire session is better than closing the connection after a statement has been executed. If the connection remains opens the entire time, I'm thinking that the stuff for creating a connection should go in one method and the stuff for closing the connection should go in its own method, but then it seems like they would have to be called from inside doPost() or doWork(), which means they would get called more than once......
Hmmmmm..... This is much trickier than it appears!
 
Carol Murphy
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps I should have looked at the Connection Pooling post by Dirk before I asked this question. I think that is what I was talking about, although my vocabulary does not include Connection Pooling. That water's way over my head at this point!
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my vocabulary does not include Connection Pooling
 
reply
    Bookmark Topic Watch Topic
  • New Topic