WebSphere Application Server - DB blocks using MS SQL Server

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > April 2005 > DB blocks using MS SQL Server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DB blocks using MS SQL Server

2005-04-14, 6:06 pm

Our server is WebSphere v.5.0.2. We are having occasional problems with blocks that won't release. The application does the following:
gets that database connection using jdo.getDatabase()
calls db.begin()
produces the select string with OQL and calls DB.getOQLQuery
binds the arguments
calls oql.execute to get the resultset
processes the resultset
closes the resultset
closes the OQL
closes the DB connection

The problem is that the connection starts blocking other connections within MS SQL. This is fine as the first connection might run for a while. But there are times that the first connection never finishes. According to MS SQL admin screens the connection
should be done(sleeping). But the application is still setting at the oql.execute statement. The execute never finishes. The first connection keeps all of the blocks in the DB and other connections are not able to complete. To get the processes running ag
ain we kill the connection from within MS SQL. This returns a stale connection error to the application and all of the other connections will start flowing. MS SQL DBAs tell me that it's something within the Java code. I cannot find any errors there.

Has anyone ever run across this before?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com