*
The moose likes Spring and the fly likes Need to know Bean configuration using org.apache.tomcat.jdbc.pool.DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Need to know Bean configuration using org.apache.tomcat.jdbc.pool.DataSource" Watch "Need to know Bean configuration using org.apache.tomcat.jdbc.pool.DataSource" New topic
Author

Need to know Bean configuration using org.apache.tomcat.jdbc.pool.DataSource

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hi,

I need to use org.apache.tomcat.jdbc.pool instead of org.apache.commons.dbcp.BasicDataSource.

Could you please provide me the bean configuration for the same.

In the below bean, url , username and password are correct but I'm getting errors for setting any property value mentioned below.

Please advise.


Thanks,
Pramod
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well, if you are using the IDE's Spring Tool Suite, which is Eclipse with Spring plugins or IntelliJ.

Then in the

<property name=""

If your cursor is in the duble quotes for the name property and you hit CTRL-SPACE, then the IDE will give you all the legal values of that attribute. So all the set><<Property>> methods in the class="" Class.

Or you can look at the Javadocs for that class and look at what setXXX methods they have and those are the properties you can set.

Hope that helps clarify it for you. <property name="XXX" is just a way to call a setXXX on the class of the bean.

Mark>


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Yeah Mark , solved it.

Thanks for the reply.
pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hey Mark,

Could you please have a look at the other issue I'm facing and kindly advise.

http://www.coderanch.com/t/604249/Spring/Property-sql-required#2757676

Thanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to know Bean configuration using org.apache.tomcat.jdbc.pool.DataSource
 
Similar Threads
Error while Proxying DAO Classes
transaction rollback
Spring + JPA + Hibernate and multiple Database connection
getHibernateTemplate().saveOrUpdate() not saving the value in database.
Spring Framework + JPA and many database schemas