Hi Srinath - I am seeing this same error using dbcp on tomcat4.0.1 with
Oracle jdbc drivers.

I can look up the DataSource from jndi ok, and I can get a connection from
the pool using getConnection() - this all works fine for me also, but
getConnection(userid, password) gives the same error you are seeing.

java.lang.UnsupportedOperationException
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125)


I've tried dbcp 1.0 and 1.0.1 - same thing.

Did you resolve the issue? If so what did you do to fix it?

Has anyone else seen this? Am I missing something obvious? Is it not valid
to request a connection from the pool using specific userid and password
(this works for a DataSource on other servers, eg WLS6)

Thanks, Kevin Hooke


>From: srinath narasimhan <[EMAIL PROTECTED]>
>Subject: [dbcp] UnSupportedOperationException in getConnection
>Date: Tue, 19 Nov 2002 17:30:03 -0500
>Content-Type: text/plain;
>            charset="us-ascii"




>Hi
>
>I am trying to use dbcp with tomcat for MSSQLServer JDBC driver. I >am
>following the procedure as suggested in the JNDI how to >documentation of
>tomcat. It works fine when I use the getConnection() function, but >when I
>try to use getConnection(username,password) I get a
>UnsupportedOperationException. I have a few questions

>1. Is this feature not supported ?
>2. Is there another way of doing this ?
>3. If this feature is not supported right now, is it proposed to be
>supported in the future ?


>Any suggestions/ideas would be of help.

>Thanks
>Srinath.


****************************************
This email message and all attachments transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and
privileged information. Please DO NOT forward this email outside of the recipient's 
Company unless expressly authorized to do so herein.  Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email
and destroy all copies of the original message.

Any views expressed in this email message are those of the individual sender except 
where the sender specifically states them to be the views of Indus
 International, Inc.
****************************************



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to