Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 27th, 2004, 06:42 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection Pooling with Beans

Hello,

I have been reading about setting up connection pooling with tomcat.
What I have read refers to jsp, but all my database access is running through beans. Will connection pooling operate with beans called via jsp?

  #2 (permalink)  
Old September 10th, 2004, 12:49 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Could me the JDBC connection pooling mean while have setup check

You can access the following Document to configure your Oracle with Sun One Application Server
http://www.angelfire.com/nj4/najmi/S...cleConfig.html


  #3 (permalink)  
Old September 10th, 2004, 12:53 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

for MySQL you can refer some of the links

http://p2p.wrox.com/topic.asp?TOPIC_ID=18624


  #4 (permalink)  
Old September 12th, 2004, 03:49 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Thanks, but this doesnt help me.
Connection poolling is set up in server xml and I understand all I need to about this.

What I am unsure about is whether I have to user JNDI to get it to work.

I do not want to configure web.xml for the database connection, although I know how to do this also.

The way I have designed my pages is to use a java bean to get connections and return resultsets, so all I have to do is pass strings from my jsp to the bean. I like this as it keeps the jsp clean and would prefer to continue with this way of working.
But will connection poolling defined in server.xml work with this methodology?

Everything I read makes reference to JNDI and I am not sure whether pooling is dependant on it.

In short, is dbcp dependant on jndi???



  #5 (permalink)  
Old September 16th, 2004, 06:11 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In reply to my own question I need to change the way my bean connects from setting up the connection itself to using JNDI, then my bean will make use of pooling.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Pooling problem. nitinp ASP.NET 2.0 Professional 2 July 9th, 2007 02:12 AM
Connection Pooling nigam.anand Apache Tomcat 0 October 18th, 2006 08:39 AM
Connection pooling and Timeout Raghavendra_Mudugal SQL Server 2000 2 May 24th, 2006 01:42 AM
connection pooling error aravwind ADO.NET 0 November 23rd, 2005 07:20 AM
Connection pooling in VB vijayma VB How-To 0 March 18th, 2005 03:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.