• 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

Connection Wait Timeout Exception

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Websphere 5.1v.My application connects with sql database.I have closed all the connections that i have opened. But the problem is i use a scheduler whose task is to fetch data thrice a day from the database.
Would those scheduler connections be active all time?

My DSN settings are Max Connections -15 Min Connections-1

Every sixth day i get ConnectionWaitTimeoutException.i.e the first five days it holds the connections active such that 5*3=15 which results in the exception on sixth day. I always want my scheduler to be active to perform its daily task

Can i set MAX Connections to zero which would result in infinte physical connections. would there be any performance issue?

Help me out plz.
Thanks in advance
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your code for closing connections.

ConnectionWaitTimeoutException will occur when getConnection() doesnt get a free connection from the pool.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic