Source: Monitoring user's online status based on connection pool monitoring component Druid implementation
Source code: Http://www.zuidaima.com/share/1550463574248448.htm
I'm going to share a code, too. Recently in the monitoring of users online status, handling the abnormal unexpected exit of clients (such as direct shutdown, sudden power outage, etc.) encountered some problems, find a lot of methods are not very good. Yesterday saw a new connection pool management tools feel very good ~ should be said to be the best---druid here do not introduce more, give everyone a connection, want to learn to see, open source. In Http://code.alibabatech.com/wiki/display/Druid/Home Druid, there is a way to get real-time information about the session in the current project.
Now that we can get the real-time situation of the session, it's good to deal with. Here are a few key configuration files and a one-time share of the docks. Find me in a group you don't understand.
Monitoring user's online status based on connection pool monitoring component Druid implementation