• 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

PreparedStatement closes prematurely while in Websphere 5.0

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am working on a database intensive app with heavy usage of PreparedStatements. I have prepared the statements, using a single connection object (which is valid throught the lifetime of the application) in the constructor. Subsequently I am calling other methods on my dbManager class which execute these statements one by one. At executeQuery(), I get the following error:
'DSRA9110E: Statement is closed.'
I changed the parameter for PreparedStatment cache and set it to 200 even though I have a batch of 90 PreparedStatements, but in vain.
The only way to get past this error as of now is to prepare the statement every time I want to execute it, which does not make sense.
Has anyone encountered the same problem. If so how do we tackle it.
REPLY ASAP PLEASE.
Regards,
Juzar.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DSRA9110E: is "Connection is closed" (not Statement is closed)
 
Dave Milne
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My mistake, can be either it appears. Sorry.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic