Configuring RAC DB in java hibernate

Hi team,
we have a 2 node RAC DB for our application, However while fail over of one node application is unable to connect to other node automatically and throughing SQL exception.

I need to configure RAC DB details in application.

[2019-08-11 07:53:00,643] ERROR - JDBCTransaction.commit(124) JDBC commit failed
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:884)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:993)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:950)
at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:99)
at oracle.jdbc.driver.T4CConnection.do_commit(T4CConnection.java:431)
at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:987)
at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)