(oracle) jdbc client clarification

36 views
Skip to first unread message

klas

unread,
Jun 29, 2021, 11:36:44 AM6/29/21
to vert.x
Hi

I'm trying to understand: 
what is the most future-proof way to work with SQL towards an oracle.ucp.jdbc.PoolDataSourceFactory...

is a bit confusing to me...

"The client API is represented with the interface JDBCClient."
...
"The JDBC Client API created in Vert.x 3 is now deprecated and instead the new SQL Client API should be used."
(exactly, which class is deprecated?)

My current code
dataSource = oracle.ucp.jdbc.PoolDataSourceFactory.getPoolDataSource()
dataSource.setConnectionFactoryClassName("oracle.jdbc.pool.OracleDataSource")
...
SQLClient client = JDBCClient.create(vertx, dataSource)

Is this the best way possible (for ORA ucp pool)?
Is it "future proof"? 
Or, is it using some old, deprecated API? 

br
klas

Paulo Lopes

unread,
Jun 30, 2021, 9:36:29 AM6/30/21
to vert.x
Hi Klas,

That functionality isn't available with the new API, I don't see why not support it, other than the fact that we need some implementation for it. Can you open a issue in github to backport it and if you're interested, I can assist you with a PR!

klas

unread,
Jul 2, 2021, 3:05:52 AM7/2/21
to vert.x
Hi

Very kind of you, definitely interested:)
I created
https://github.com/eclipse-vertx/vert.x/issues/3996
(not sure if type should be bug or feature... feel free to change/refine the ticket)
Reply all
Reply to author
Forward
0 new messages