Deprecating C3P0 and our custom RDBMS DataConnector Syntax

Cantor, Scott cantor.2 at osu.edu
Tue Aug 1 09:22:53 EDT 2017


> > Unless there was something else I needed to configure about that bean
> that I didn't.
> 
> SWAG: Try making it lazy-init.  My theory is that at that stage the bean would
> not get instantiated until the DataConnector starts
> up and thus it would be in scope for a failure to be caught.

It's a validation issue. The data connectors still have that Validator notion built-in, and unfortunately they're all defaulting to a hardwired one that connects to LDAP or the database. There's a way to plug in a non-validating validator, but that really should default to nothing and allow a connecting validator to be plugged in.

It's just a fail-fast thing, and I don't believe it's connected to how the data source is defined. Just defining one as a Spring bean shouldn't trigger an attempt to connect.

As far as the syntax, seems like a good use case for having the <beans> option inline.

-- Scott



More information about the dev mailing list