Bug 51139

Summary: Possible bug in code related to "validatorClassName" property?
Product: Tomcat Modules Reporter: tkosacek
Component: jdbc-poolAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Add missing validatorClassName prpoerty to ALL_PROPERTIES array

Description tkosacek 2011-05-01 03:08:56 UTC
Created attachment 26945 [details]
Add missing validatorClassName prpoerty to ALL_PROPERTIES array

I've been trying to configure a connection pool that includes a custom validator class, however it seems like if the "validatorClassName" property is specified in the configuration XML, the property is not getting passed to the new created datasoure implementation in DataSourceFactory.  It seems the properties array, ALL_PROPERTIES, in DataSourceFactory does not contain validatorClassName so that property is never propogated?  When I add the property to the ALL_PROPERTIES array, it seems to work as I would expect.  Have I missed something in the expected configuration? I'll attach a patch for the proposed mod to DataSourceFactory.java.
Comment 1 Keiichi Fujino 2011-09-09 01:21:20 UTC
Fixed r1166619.