Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use thread context classlaoder to load driver #105

Closed
elrodro83 opened this issue Dec 28, 2017 · 0 comments · Fixed by #115
Closed

Use thread context classlaoder to load driver #105

elrodro83 opened this issue Dec 28, 2017 · 0 comments · Fixed by #115

Comments

@elrodro83
Copy link

If the jdbc driver class is not found when trying to load it (https://github.com/swaldman/c3p0/blob/master/src/java/com/mchange/v2/c3p0/DriverManagerDataSource.java#L143), a second attempt should be made using the Thread.currentThread. getContextClassLoader()

This would allow to have c3po loaded by a classloader while having the jdbc driver loaded by a descendant classloader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant