DBCP Factory

2003-01-30 Thread Marc Logemann
Hi,

i am using 4.18 and i am wondering if its true that DBCP is the default factory for 
javax.sql.DataSource
resource definitions. I read it in the JNDI DataSource tomcat docs.

I defined the resource in the server.xml



maxActive5
[..]

but on lookup it seems tomcat cant find the DBCP object factory. I searched for the 
DBCP libs
and couldnt find it either. Now i am confused.

1. Is DBCP bundlded with 4.18 ?
2. is it true that i dont need to declare the factory inside ?

thx for any hints, i am mainly puzzled since i heard that tyrex is not default 
anymore, but
tyrex is the only pooling library i can find in the tomcat distro.

Thanks for clearifying.
---
greetings from
Marc Logemann
http://www.logemann.info


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




RE: DBCP Factory

2003-01-30 Thread Ralph Einfeldt
DBCP is bundled with tomcat, but AFAIK is not the
default factory for javax.sql.DataSource.

According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.htm
you have to explicitly set the factory:

factory
org.apache.commons.dbcp.BasicDataSourceFactory

(Havn't tried it, as we use our own pool, which is no DataSource)

> -Original Message-
> From: Marc Logemann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 2:48 PM
> To: [EMAIL PROTECTED]
> Subject: DBCP Factory
> 
> 
> i am using 4.18 and i am wondering if its true that DBCP is 
> the default factory for javax.sql.DataSource
> resource definitions. I read it in the JNDI DataSource tomcat docs.
> 
> 1. Is DBCP bundlded with 4.18 ?
> 2. is it true that i dont need to declare the factory inside 
> ?
> 

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




RE: DBCP Factory

2003-01-30 Thread Marc Logemann
Hi,

i tried also the factory paramter, w/o success, can somebody tell me where the DBCP 
lib should be?
i checked common/lib, but didnt see something.

> DBCP is bundled with tomcat, but AFAIK is not the
> default factory for javax.sql.DataSource.

> According to
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h
> owto.htm
> you have to explicitly set the factory:

> factory
> org.apache.commons.dbcp.BasicDataSourceFactory


---
greetings from
Marc Logemann
http://www.logemann.info

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




RE: DBCP Factory

2003-01-30 Thread Roberts, Eric
Hi,

common/lib should contain commons-dbcp.jar - that is where the BasicDataSourceFactory 
is.

-Original Message-
From: Marc Logemann [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 15:08
To: [EMAIL PROTECTED]
Subject: RE: DBCP Factory


Hi,

i tried also the factory paramter, w/o success, can somebody tell me where the DBCP 
lib should be?
i checked common/lib, but didnt see something.

> DBCP is bundled with tomcat, but AFAIK is not the
> default factory for javax.sql.DataSource.

> According to
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h
> owto.htm
> you have to explicitly set the factory:

> factory
> org.apache.commons.dbcp.BasicDataSourceFactory


---
greetings from
Marc Logemann
http://www.logemann.info

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


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




RE: DBCP Factory

2003-01-30 Thread Ralph Einfeldt
Which file did you download ?

tomcat-4.1.18.tar.gz contains

jakarta-tomcat-4.1.18/common/lib/commons-dbcp.jar

and the other jar files that belong to it.

> -Original Message-
> From: Marc Logemann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: DBCP Factory
> 
> 
> i tried also the factory paramter, w/o success, can somebody 
> tell me where the DBCP lib should be?
> i checked common/lib, but didnt see something.
> 

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




RE: DBCP Factory

2003-01-30 Thread Marc Logemann
Hi,

ohhh i DLed the LE version, of course i thought that LE only means that libs like
xml parser are missing, cause they are bundled in jdk1.4. But DBCP is missing too.


> Which file did you download ?
> tomcat-4.1.18.tar.gz contains
> jakarta-tomcat-4.1.18/common/lib/commons-dbcp.jar
> and the other jar files that belong to it.

>> -Original Message-
>> From: Marc Logemann [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 30, 2003 3:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: DBCP Factory
>>
>>
>> i tried also the factory paramter, w/o success, can somebody
>> tell me where the DBCP lib should be?
>> i checked common/lib, but didnt see something.
>>

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

---
greetings from
Marc Logemann
http://www.logemann.info

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




Re: DBCP Factory

2003-01-30 Thread Erik Price
I don't have commons-dbcp.jar in my system's Tomcat -- is that new in 4.1?

My server runs Tomcat 4.0.6, does that mean I have to put DBCP JAR in my 
webapp's WEB-INF/lib ?


Erik

Roberts, Eric wrote:
Hi,

common/lib should contain commons-dbcp.jar - that is where the BasicDataSourceFactory is.

-Original Message-
From: Marc Logemann [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 15:08
To: [EMAIL PROTECTED]
Subject: RE: DBCP Factory


Hi,

i tried also the factory paramter, w/o success, can somebody tell me where the DBCP lib should be?
i checked common/lib, but didnt see something.



DBCP is bundled with tomcat, but AFAIK is not the
default factory for javax.sql.DataSource.




According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h
owto.htm
you have to explicitly set the factory:




factory
org.apache.commons.dbcp.BasicDataSourceFactory




---
greetings from
Marc Logemann
http://www.logemann.info

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


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





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




Re: DBCP Factory

2003-01-30 Thread Jacob Kjome

4.0.x uses Tyrex.  DBCP is for 4.1.x.  And make sure you get the full 
version of Tomcat instead of the jdk1.4.x-LE version.


Jake

At 11:21 AM 1/30/2003 -0500, you wrote:
I don't have commons-dbcp.jar in my system's Tomcat -- is that new in 4.1?

My server runs Tomcat 4.0.6, does that mean I have to put DBCP JAR in my 
webapp's WEB-INF/lib ?


Erik

Roberts, Eric wrote:
Hi,
common/lib should contain commons-dbcp.jar - that is where the 
BasicDataSourceFactory is.
-Original Message-
From: Marc Logemann [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 15:08
To: [EMAIL PROTECTED]
Subject: RE: DBCP Factory

Hi,
i tried also the factory paramter, w/o success, can somebody tell me 
where the DBCP lib should be?
i checked common/lib, but didnt see something.

DBCP is bundled with tomcat, but AFAIK is not the
default factory for javax.sql.DataSource.



According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-h
owto.htm
you have to explicitly set the factory:



factory
org.apache.commons.dbcp.BasicDataSourceFactory


---
greetings from
Marc Logemann
http://www.logemann.info
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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



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