Menu

#61 C3p0 failover

v1.0 (example)
open
nobody
Failover (1)
2
2018-01-04
2018-01-04
R GANESAN
No

Hi
Weare using c3p0 withlobg jdbcurl ( failover=on. In our case theuserid and password properties are different for primary andand secondary. So whenfails over because of bad credentials it fails . How can it be handled?.
We tried setting the properties on sql sqlexception but we don't havea way in c3P0 to identify. Whether. It Is pointing to. Primary or secondary. Because connec.getclientdata.getmetadata.url also doesn't give the actual host the connection belongs to
Appreciate. Your help.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB