Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pramod talekar
Ranch Hand
Posts: 328
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
pramod talekar
Ranch Hand
Posts: 328
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah Mark , solved it.

Thanks for the reply.
 
pramod talekar
Ranch Hand
Posts: 328
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic