hellodanylo / key2gym

The Key2Gym's mission is to create an open, excellent user experience providing, scalable, modern, platform-independent application for running small to medium-sized gyms.
1 stars 0 forks source link

Different threads should use different connections #46

Open hellodanylo opened 11 years ago

hellodanylo commented 11 years ago

The data refresh and Swing threads should not share the same connection for performance and thread-safety reasons.

org.springframework.jdbc.datasource.DriverManagerDataSource is responsible for creating the data source, so it's specifications should be checked first.