spring - org.springframework.jdbc.datasource.DriverManagerD ataSource is it threadsafe? -
we know whether following data source
org.springframework.jdbc.datasource.drivermanagerd atasource
is threadsafe , can used in production environment? links source confirms helpful.
regards aravias
no, can not use drivermanagerdatasource
in production. not because not thread safe (i believe is), because not perform connection pooling, results in horrible performance , unnecessary network overhead. see notes in javadoc.
you should consider using dbcp or c3p0 data sources, drivermanagerdatasource
fine testing purposes.
Comments
Post a Comment