You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any movement on this? setServerName is deprecated in the Postgres JDBC driver so presumably this has to be supported at some point.
edit After much finagling I traced this down to my usage of quill-jdbc's JdbcContextConfig which just shoves everything into it's properties as a String. I replaced their implementation with my own and had to do some extra work to ensure that the serverPorts is actually a primitive int[] array instead of a boxed Integer array as the reflective call to Postgres' BaseDataSource.setPortNumbers wouldn't accept a boxed array.
Otherwise this appears to work just fine in Hikari
I am trying to connect to AWS Aurora (Postgres) using HikariJNDIFactory on Tomcat 9.
Below is the META-INF/context.xml of the war to be deployed in Tomcat.
Because there is a master and a read replica, there are multiple hostnames and port numbers for the database.
Therefore, I am trying to set them using the properties serverNames and portNumbers in DataSource.
However, the following exception occurred
Looking at the HikariCP implementation, it seems that injections into int[] and String[] properties are not supported.
https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/util/PropertyElf.java#L112-L165
I would like to be able to set the int[] and String[] properties of the DataSource as well.
The text was updated successfully, but these errors were encountered: