• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Is it necessary to close connection while using datasources

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am using Websphere4.0. And i created one datasource for oracle database.I am using this datasource in JSP's.Is it necessary to close connection every time when i use it in JSP???
I am not closing connection in each page..after accessing 4 to 5 pages i am getting StaleConnection: connection closed
If any body know about this please let me know.
sagar
[ April 30, 2002: Message edited by: Vidya Sagar Pallikonda ]
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, it is. Closing the connection will actually return the connection back to the pool.
Matt
reply
    Bookmark Topic Watch Topic
  • New Topic