davidmoten / davidmoten/rxjava2-jdbc

How to create a "NonBlockingConnectionPool "using a "java.sql.Connection" object already present ?

Open
#216 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
394
Forks
41
Avg merge
2m
Merged PRs (30d)
1

Description

I tried creating a connectionpool using rxjava2-jdbc using a java.sql.Connection Object .

NonBlockingConnectionPool pool =
Pools.nonBlocking()
.maxPoolSize(Runtime.getRuntime().availableProcessors() * 5)
.connectionProvider(ConnectionProvider.from(connection))
.build();
But it strangely throws this NoSuchMethodError exception :

Caused by: java.lang.NoSuchMethodError: com.github.davidmoten.guavamini.Preconditions.checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object

**Scenario :-
I already have a java.sql.Connection Object , How to I use that to create a org.davidmoten.rx.jdbc.Database Object so that I can execute my SQL queries from ?**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.