This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Struts and the fly likes Configuring DBCP Vs Configuring JNDI?  Difference between  them? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Configuring DBCP Vs Configuring JNDI?  Difference between  them?" Watch "Configuring DBCP Vs Configuring JNDI?  Difference between  them?" New topic
Author

Configuring DBCP Vs Configuring JNDI? Difference between them?

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Hi, i am new to struts, i have developed an application using DBCP in struts-config.xml.
Q1 )Now problem where to configure for JNDI?
Q2) JNDI and DBCP are different ?
Are they related?



Pauline Ward
Greenhorn

Joined: Jan 04, 2007
Posts: 1
Yes, I am also trying to work out how to configure DBCP (and JNDI if necessary). One problem is that the Struts 1.3 struts-config.xml doesn't seem to allow the <data-sources> element any more! There was a very simple explanation for how to use <data-sources> in the Wrox Struts book but it's no longer valid, I think. See:

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

Does anyone know of a tutorial/explanation just to set up a simple database connection with Tomcat 5.5 and Struts 1.3.5 please?

Pauline
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Configuring DBCP Vs Configuring JNDI? Difference between them?