• Post Reply Bookmark Topic Watch Topic
  • New Topic

why data source?

 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do is a data source when connecting to a database connection pool of an EJB server?Will a Driver Manager not suffice?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by william kane:
Why do is a data source when connecting to a database connection pool of an EJB server?Will a Driver Manager not suffice?
DriverManager does not support connection pooling, it does not support the transactional control required by EJBs or for that matter distributed (XA) transactions, and it forces you to know the JDBC URL of the database you're connecting to which would mix up development and deployment roles.
- Peter
[ April 14, 2003: Message edited by: Peter den Haan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!