You can write your custom Mbean with database reconnect logic to check database availability and make the Mbeans that need database connection depends on this Mbean.
Thanks,
Saurabh V.
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community