473,769 Members | 4,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handling invalid database connections from connection pools

I am currently developing a web app using WSAD 5.1 and DB2 V7.2.8. I
understand there is a myriad of database errors related to obtaining
valid connections that are mapped directly to
com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion. There are
apparently two solutions to ensure a valid connection is obtained from
a WebSphere dataSource. The first is to catch
StaleConnection Exceptions and attempt to execute the transaction again
a finite number of times. The second is to configure WebSphere to
test each connection as they are obtained. See link
http://publib.boulder.ibm.com/infoce...ion&maxHits=50
for details.

I would like to catch com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion
since it is not likely that our shop will ever move our applications
off WebSphere. Does anyone know what library should be included in
the Java build path? Is this the preferred method of handling invalid
connections? I cannot seem to find any useful documentation on this
subject for WSAD 5.1. Thanks in advance.
Nov 12 '05 #1
4 7169
Maybe you can try WAS newsgroup.

"Edward Singleton" <si*******@mchs i.com> wrote in message
news:7e******** *************** ***@posting.goo gle.com...
I am currently developing a web app using WSAD 5.1 and DB2 V7.2.8. I
understand there is a myriad of database errors related to obtaining
valid connections that are mapped directly to
com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion. There are
apparently two solutions to ensure a valid connection is obtained from
a WebSphere dataSource. The first is to catch
StaleConnection Exceptions and attempt to execute the transaction again
a finite number of times. The second is to configure WebSphere to
test each connection as they are obtained. See link
http://publib.boulder.ibm.com/infoce...ion&maxHits=50 for details.

I would like to catch com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion
since it is not likely that our shop will ever move our applications
off WebSphere. Does anyone know what library should be included in
the Java build path? Is this the preferred method of handling invalid
connections? I cannot seem to find any useful documentation on this
subject for WSAD 5.1. Thanks in advance.

Nov 12 '05 #2
Test message
Nov 12 '05 #3
We're stuck in the same place. The WAS 3.5 to 4.0 documentation says to
use com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion, but the 5.0
documentation is silent on the matter, and of course the WSAD
documentation is useless. This class isn't in the WAS 5.0 api
documentation.

Nov 12 '05 #4
We're stuck in the same place. The WAS 3.5 to 4.0 documentation says to
use com.ibm.websphe re.ce.cm.StaleC onnectionExcept ion, but the 5.0
documentation is silent on the matter, and of course the WSAD
documentation is useless. This class isn't in the WAS 5.0 api
documentation.

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2413
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50 visitors to my Web site can access my database through my Web site at one time? Or does this mean that in my code I can only use 50 connections? and like
4
1308
by: | last post by:
I was just wondering what other people's opinions and experiences were in regards to using Database Connections throughout a website. Supposing that a single webpage accesses a database anywhere from 5-30 times throughout a webpage do you prefer to open the database connection upon say initialization and reuse it elsewhere whenever possible and then dispose of it upon disposing or do you write 5 - 10 lines of code opening and closing it...
2
971
by: Tom John | last post by:
Hi I have a data access layer that provides static functions between my business logoc and an Access database. The connection string to the database never changes. Currently I carefully open and close a connection to the database at the begining of each method in the dataacces layer. But am not sure this is the best method, I went this way because i read somewhere in web apps connections should be kept open for as short a period as
10
4579
by: jt | last post by:
The program works like this: There is a form with a button. When the form is loaded, a separate thread is started which is retreiving/updating data in the database every x seconds. When clicked on the button, data is retrieved from the database. This looks to work fine. However, sometimes after clicking on the butten to retrieve the data i got an error message (on the separate thread): "The connection is already Open"
2
8148
by: Gen | last post by:
Hello there, I am developing a web application using Firebird.NET provider ver 1.7 Connection pooling is being used to better the application's performance. The problem is that the pool never closes its connections, even if they are being idle for a long time. Is there some way to make the pool automatically release a connection if not being used for a certain period of time? I don't want to use the "Connection Lifetime" property of...
4
1966
by: Sierra | last post by:
Problem: Database connections are not being reused properly. SP_WHO2 shows upwards of 200 connections being created per page request. Most connections exist for 60 seconds then close without being reused. A few connections are reused. SQL System Profiler shows many “Audit Login” and many “RPC: Completed” records for each page request – often involving the exact same SQL statement called in exactly the same manner from within a...
2
1460
by: Tom | last post by:
I try to do the following: Generate a pooled connection in a web application. I use the following code: In my Global.asax.cs protected void Application_Start(object sender, EventArgs e) { //Creating a global pooled connection object ConnectionStringSettings DBconn =
2
2353
by: Robin9876 | last post by:
In an ASP.Net v2 web application that connects to a SQL 2005 database. It appears that it is not closing the connections to the database and leaves 100 db connections open and then the application can not open any more connections. Why is the database connections still active (sleeping in activity monitor) despite the code closing the connection? How can you enable application pooling for a web application?
0
4757
MrMancunian
by: MrMancunian | last post by:
How to create a database connection without using wizards Introduction I've seen a lot of questions on the net about getting data from, and saving data to databases. Here's a little insight how to do that using .NET code. I prefer using code instead of wizards, because you are completely in charge of connections. This article is written for both Visual Basic.NET 2005 and C# 2005 and will discuss how to use an MS Sql database. OleDB works...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.