java - Display the Connection ID of mysql -


i want add sniplet of code can print connection id of connection made mysql using getconnection(). going used monitoring number of connections made @ time.

connection interface , implemented multiple database vendors. entirely sure whether can such value, depends whether mysql allowing or not.

regarding problem of monitoring number of connections made @ time, based on requirement can go synchronized counter maintain number of times connection made/closed/open. hope helps.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -