How to get the number of active DB connections made from spring boot application

Viewed 10586

I have build a spring boot application with Oracle datasource. I need to print the total active connections in log statement. How to get the active connections. Note - Not max active connections it should be active connection @particular time/instance.

2 Answers
Related