Expert |
|
Joined: Tue May 13, 2008 3:42 pm Posts: 919 Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
|
A datasource is really a connection pool. It helps manage a number of connections, and can help spread out use over multiple clients.
When you're talking DriverManager, you're probably talking about creating a direct connection per request. That's pretty resource intensive, and a waste of critical resources.
Use a datasource!
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|
|