users
[Top] [All Lists]

Re: [cinjug-users] Oracle, Tomcat and Connection Pooling.

To: Brian Engel <Brian.Engel@xxxxxxxxxxxx>
Subject: Re: [cinjug-users] Oracle, Tomcat and Connection Pooling.
From: Eric Bardes <ericbardes@xxxxxxxxx>
Date: Thu, 18 Aug 2005 14:36:58 -0400
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=YZYSMf6jVKM++ZiGGmOw0t2FJTcvkB0D0X7PNt4DuSH5mTzULMWqZDY1hXjc6uML9rOHghXr3WKLYUbfFsRYujCtnIUdCAhswc6EB6TWJd/SEQgUcSD7HWN+JTc5JFSdfSZSs7sv8tKfrJjc2q9zAuNmLngWi5AVaDFmF9eq0JU=
In-reply-to: <B3C1814636F055418325EF3C367CD4D401BE2CDD@namail2.na.ipsos>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <B3C1814636F055418325EF3C367CD4D401BE2CDD@namail2.na.ipsos>
Tomcat creates a wraps the Oracle class (or any other data source) with it's own class and returns that.  As I understand it, it allows for better pool management.  It know it checks for orphan, idle and invalid connections.

Try changing OracleDataSource to just DataSource.

On 18/08/05, Brian Engel <Brian.Engel@xxxxxxxxxxxx> wrote:
 
Wondering if anyone has encountered this problem, it is driving crazy.
 
 
Basically I trying to setup a connection pool with Tomcat (4.1.30) using Oracle's data source factory (et al).
 
The issue is I am getting a ClassCastException when I attempt to cast the object retrieved via the JNDI lookup.
 
i.e.


--
Cheers,
Eric Bardes
<Prev in Thread] Current Thread [Next in Thread>