Re: jndi versus database connection pooling

2002-03-17 Thread Nikola Milutinovic
Nikola Milutinovic wrote: [EMAIL PROTECTED] wrote: I think all servlet tags should be defined prior to defining the servlet-mapping tags. You could be right. I added both ResourceRef and the second Servlet definition at the same time, thinking that itæs OK. I'll test it on Monday.

RE: jndi versus database connection pooling

2002-03-17 Thread Bing Zhang
-Original Message- From: Soefara Redzuan To: [EMAIL PROTECTED] Sent: 3/17/02 12:02 AM Subject: RE: jndi versus database connection pooling Maybe but if it's just the docs that you're missing, why not get them from the Apache site ? http://jakarta.apache.org/tomcat/tomcat-4.0-doc

Re: jndi versus database connection pooling

2002-03-16 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: I think all servlet tags should be defined prior to defining the servlet-mapping tags. You could be right. I added both ResourceRef and the second Servlet definition at the same time, thinking that itæs OK. I'll test it on Monday. Nix. -- To unsubscribe:

RE: jndi versus database connection pooling

2002-03-16 Thread Bing Zhang
-howto.html, ssl-howto.html, index.html, introduction.html and .. Am I missing something here? Thanks Bing Zhang -Original Message- From: Craig R. McClanahan To: Tomcat Users List Sent: 3/15/02 11:26 PM Subject: Re: jndi versus database connection pooling On Sat, 16 Mar 2002, Soefara

RE: jndi versus database connection pooling

2002-03-16 Thread Soefara Redzuan
: RE: jndi versus database connection pooling Date: Sat, 16 Mar 2002 18:19:13 -0800 I asked this before, but got no answear. Since we are talking about docs, here we go again. I installed tomcat-4.0.1, 4.0.1-manuls and 4.0.1-webapps, all from rpms on RedHat 6.2. However some of key docs under

Re: jndi versus database connection pooling

2002-03-15 Thread Nikola Milutinovic
I use the JNDI based connection pool with Postgres quite successfully. You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a server.xml configuration something like this: Finally, someone using PostgreSQL... Context path=/foo ... What about automatically

Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan
On Fri, 15 Mar 2002, Nikola Milutinovic wrote: Date: Fri, 15 Mar 2002 14:08:38 +0100 From: Nikola Milutinovic [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling I use the JNDI

Re: jndi versus database connection pooling

2002-03-15 Thread Micael Padraig Og mac Grene
[EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling I use the JNDI based connection pool with Postgres quite successfully. You will need to have postgresql.jar in $CATALINA_HOME/common

Re: jndi versus database connection pooling

2002-03-15 Thread Nikola Milutinovic
Craig R. McClanahan wrote: In 4.0.x, automatically deployed contexts with no Context entry do not have any resources assigned to match up the resource references. Therefore, you must explicitly define such webapps in the server.xml file to give them access to the corresponding JNDI

Re: jndi versus database connection pooling

2002-03-15 Thread rsequeira
I think all servlet tags should be defined prior to defining the servlet-mapping tags. RS Nikola Milutinovic [EMAIL PROTECTED] on 03/15/2002 01:46:47 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: jndi versus database

Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan
On Fri, 15 Mar 2002, Nikola Milutinovic wrote: Date: Fri, 15 Mar 2002 20:46:47 +0100 From: Nikola Milutinovic [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling Craig R. McClanahan

Re: jndi versus database connection pooling

2002-03-15 Thread Soefara Redzuan
DataSource ds = null; Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup( java:comp/env ); ds = (DataSource)envCtx.lookup( jdbc/DB ); The problem is that returned datasource is always null. I wish I could get that far. I am using a web.xml that is

Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan
PROTECTED] To: [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling DataSource ds = null; Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup( java:comp/env ); ds = (DataSource)envCtx.lookup( jdbc/DB ); The problem is that returned

Re: jndi versus database connection pooling

2002-03-15 Thread Soefara Redzuan
Oh dear, Craig, I'm fairly embarassed. Sorry. You're going to kick yourself ... the required element name is res-ref-name, not resource-ref-name :-). I should have noticed that when I copied my web.xml right next to the previous person's. What is it they say about being so close to a problem

Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan
On Sat, 16 Mar 2002, Soefara Redzuan wrote: Date: Sat, 16 Mar 2002 15:03:10 +0800 From: Soefara Redzuan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling Oh dear, Craig, I'm fairly embarassed. Sorry

Re: jndi versus database connection pooling

2002-03-14 Thread Mark Muffett
: Thursday, March 14, 2002 6:51 AM Subject: Re: jndi versus database connection pooling On Thu, 14 Mar 2002, Dave Whitla wrote: Date: Thu, 14 Mar 2002 16:22:01 +1000 From: Dave Whitla [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED

Re: jndi versus database connection pooling

2002-03-14 Thread Eric . Wang
/2002 04:18:13 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Fax to: Subject:Re: jndi versus database connection pooling There's a lot to configure to get it to work. The coding side seems to be well documented, and there have been

Re: jndi versus database connection pooling

2002-03-14 Thread William Au
] Sent: Thursday, March 14, 2002 6:51 AM Subject: Re: jndi versus database connection pooling On Thu, 14 Mar 2002, Dave Whitla wrote: Date: Thu, 14 Mar 2002 16:22:01 +1000 From: Dave Whitla [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re: jndi versus database connection pooling

2002-03-14 Thread Soefara Redzuan
Mark Muffett [EMAIL PROTECTED] on 03/14/2002 04:18:13 AM The coding side seems to be well documented, and there have been several instances posted here, but (as far as I can see) we're all working in the dark with server.xml. I've spent a lot of time trying to get database pooling to work with

Re: jndi versus database connection pooling

2002-03-14 Thread Eric . Wang
PROTECTED] To:[EMAIL PROTECTED] cc: Fax to: Subject:Re: jndi versus database connection pooling Mark Muffett [EMAIL PROTECTED] on 03/14/2002 04:18:13 AM The coding side seems to be well documented, and there have been several instances posted here, but (as far as I can see) we're all working

Re: jndi versus database connection pooling

2002-03-14 Thread Soefara Redzuan
not allow resource-ref-name here. I'm surprised nobody else got this following the JNDI howto. Soefara. From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling Date: Thu, 14 Mar 2002 11:03:07 -0500 Hi

Re: jndi versus database connection pooling

2002-03-14 Thread Mark Muffett
This was one of the problems I had. Mark - Original Message - From: Soefara Redzuan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 4:16 PM Subject: Re: jndi versus database connection pooling Yes, sorry, I was using dummy values and forgot that. Thank you

Re: jndi versus database connection pooling

2002-03-14 Thread Craig R. McClanahan
On Thu, 14 Mar 2002, Mark Muffett wrote: Date: Thu, 14 Mar 2002 09:18:13 - From: Mark Muffett [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling There's a lot to configure

Re: jndi versus database connection pooling

2002-03-14 Thread Taavi Tiirik
I use the JNDI based connection pool with Postgres quite successfully. You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a server.xml configuration something like this: ... One Postgres-specific note is that you have to start the postmaster application listening for

Re: jndi versus database connection pooling

2002-03-13 Thread Dave Whitla
You will need to write a PooledDataSource implementation if your JDBC driver does not ship with one. AFAIK mm.mysql does not. But some one somewhere would have to have done it by now for their own project. - Original Message - From: Soefara Redzuan [EMAIL PROTECTED] To: [EMAIL

Re: jndi versus database connection pooling

2002-03-13 Thread Craig R. McClanahan
On Thu, 14 Mar 2002, Dave Whitla wrote: Date: Thu, 14 Mar 2002 16:22:01 +1000 From: Dave Whitla [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jndi versus database connection pooling You will need to write