Costin Leau opened SPR-5118 and commented
SQLErrorCodesFactory uses a ClassPathResource (which in this case relies on the TCCL) to load both custom and default codes. Since the default codes are specified in the Spring jar, the factory could use its classloader to load these resources and then use the client classloader (if available instead of the TCCL) to load the custom codes.
In OSGi this makes a difference as it doesn't require users to import various jdbc packages.
(see http://tinyurl.com/5cle3n).
Affects: 2.5.5
1 votes, 1 watchers