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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -