Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I ensure that database security is applied to the current user when I use a connection pool since the connections are created with a default user ID and password?

0
Posted

How can I ensure that database security is applied to the current user when I use a connection pool since the connections are created with a default user ID and password?

0

Location: http://www.jguru.com/faq/view.jsp?EID=61453 Created: May 31, 2000 Modified: 2000-05-31 21:04:17.293 Author: Joe Sam Shirah (http://www.jguru.com/guru/viewbio.jsp?EID=42100) Question originally posed by Daniel Weimer (http://www.jguru.com/guru/viewbio.jsp?EID=25540 In general, you can’t. Nearly all optimizations involve trade-offs and a large part of the developer’s job is to select those that make the most sense under a given set of circumstamces. This is really a security question, which can easily evolve into a can of worms. I’ll start with a quote from JDBC Performance Tips that connection pooling “may also be best suited to apps in which there is a certain class of users that can share connections… This would not be well-suited to apps in which each user had to have their own individual authority verified and used for the connection, since this would conflict with the concept of saving away connections for use by any number of users.” While you may find some database en

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123