DataSources and Tomcat (continue thread: Re: How to use connection pool with tomcat 1.2.9)

2007-07-14 Thread Ken Bowen
RE(David Smith): though I'm guessing that this thread is over and nobody will read this follow-up. :( Change to: :) -- at least one follow-up reader. RE(Chris Shultz): |> As I said, i did declare the tomcat dataSource in server.xml and |> WEB-INF/web.xml. | |Don't do that. Since you're

Re: How to use connection pool with tomcat 1.2.9

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thai, Nhut Thai Le wrote: > Thanks for the info about the struts 1.3. If you didnt say that, i > would pack everything up and deploy on a school server for my demo > next week. So now I gotta change back to container-managed > dataSource. You can

Re: How to use connection pool with tomcat 1.2.9

2007-07-10 Thread David Smith
There are configuration and coding examples on the tomcat website at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Take a look at that and post a follow up if you still have questions. --David Nhut Thai Le wrote: Hi Chris, Thanks for the info about the struts 1

Re: How to use connection pool with tomcat 1.2.9

2007-07-09 Thread Nhut Thai Le
Hi Chris, Thanks for the info about the struts 1.3. If you didnt say that, i would pack everything up and deploy on a school server for my demo next week. So now I gotta change back to container-managed dataSource. As I said, i did declare the tomcat dataSource in server.xml and WEB-INF/web.xm

Re: How to use connection pool with tomcat 1.2.9

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thai, Nhut Thai Le wrote: > Servlet decument says: getDatasource(HTTPServletRequest) is used to > get the default datasource, getDataSource(HttpServletRequest, String) > get the selected datasource. This appears to be a Struts method, not anything f

Re: How to use connection pool with tomcat 1.2.9

2007-07-09 Thread Nhut Thai Le
Servlet decument says: getDatasource(HTTPServletRequest) is used to get the default datasource, getDataSource(HttpServletRequest, String) get the selected datasource. However, since I am using struts. following instruction in tomcat documentation on connection pooling and using getDatasource wit

Re: How to use connection pool with tomcat 1.2.9

2007-07-09 Thread David Smith
Not knowing how this code is working: DataSource ds = this.getDataSource(request,"jdbc/TestDB"); > if(ds == null) > throw new InternalException("datasource is null"); I'm not sure what to tell you. The method getDataSource( request, "jdbc/TestDB" ) is not a part of tomcat or the servlet s

Re: How to use connection pool with tomcat 1.2.9

2007-07-07 Thread Nhut Thai Le
ys as well but these should work good luck - Original Message - From: "Nhut Thai Le" To: Sent: Saturday, July 07, 2007 4:20 PM Subject: How to use connection pool with tomcat 1.2.9 > Hi guys, > I 'm developing a simple web app with netbeans with bundle

Re: How to use connection pool with tomcat 1.2.9

2007-07-07 Thread Nhut Thai Le
You are definitely right, i was sleepy while posting the question. The 1.2.9 is the struts version. The bundles tomcat is 5.5.17. But is it the cause of my problem? David Smith <[EMAIL PROTECTED]> wrote: Tomcat 1.2.9??? I doubt that's the real version number. Typical version numbers are 4.x

Re: How to use connection pool with tomcat 1.2.9

2007-07-07 Thread Johnny Kewl
ould work good luck - Original Message - From: "Nhut Thai Le" <[EMAIL PROTECTED]> To: Sent: Saturday, July 07, 2007 4:20 PM Subject: How to use connection pool with tomcat 1.2.9 Hi guys, I 'm developing a simple web app with netbeans with bundle tomcat 1.2.9.

Re: How to use connection pool with tomcat 1.2.9

2007-07-07 Thread David Smith
Tomcat 1.2.9??? I doubt that's the real version number. Typical version numbers are 4.x, 5.0.x, 5.5.x, or 6.0.x. I think Netbeans bundles started with 5.0.x later upgraded to 5.5.x with Netbeans 5.5. Could you take another look? --David Nhut Thai Le wrote: Hi guys, I 'm developing a si

How to use connection pool with tomcat 1.2.9

2007-07-07 Thread Nhut Thai Le
Hi guys, I 'm developing a simple web app with netbeans with bundle tomcat 1.2.9. I want to use connection pooling fir my web app. Thus, i config as follow: Here is my server.xml: