• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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

 
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah Mark , solved it.

Thanks for the reply.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Mark,

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

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

Thanks a lot.
 
reply
    Bookmark Topic Watch Topic
  • New Topic