ibmdb / java_reactive_driver

IBM Db2 Java Reactive Driver based on R2DBC.
6 stars 1 forks source link

Unable to create ConnectionFactory for Reactive DB2 #12

Open mohitbang740 opened 9 months ago

mohitbang740 commented 9 months ago

I was trying to incorporate the reactive version of DB2. For the same I have enabled @EnableR2dbcRepositories and created a Repository class.

I have added the DB properties like below:

spring.r2dbc.driver-class-name: com.ibm.db2.r2dbc.DB2ConnectionFactory spring.r2dbc.url: r2dbc:rdbc2://{DB_URL}:{DB_PORT}/{DB_NAME} spring.r2dbc.username: {DB_USERNAME} spring.r2dbc.password: {DB_PASS}

While booting up the application I am getting the below error: Unable to create a ConnectionFactory for ConnectionFactoryOptions{options={database= DB_NAME, host= DB_HOST, driver= rdb2, }}. Available drivers: [ pool ]

Can you help me to configure the properties to connect to the DB?