Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JDBC A connection pool with multiple user ID.

Have Programming Question? Ask it here!
 
 
 


Clark
A connection pool with multiple user ID.
1 Answer(s)      3 years and 9 months ago
Posted in : JDBC


Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.


Advertisement
View Answers

November 15, 2010 at 11:39 AM


Hi friends,

Since the Connection interface ( and the underlying DBMS ) requires a specific user and password, there's not much of a way around this in a pool. While you could create a different Connection for each user, most of the rationale for a pool would then be gone. Debugging is only one of several issues that arise when using pools. However, for debugging, at least a couple of other methods come to mind. One is to log executed statements and times, which should allow you to backtrack to the user. Another method that also maintains a trail of modifications is to include user and timestamp as standard columns in your tables. In this last case, you would collect a separate user value in your program.

Thanks.



Related Tutorials/Questions & Answers:
A connection pool with multiple user ID.
A connection pool with multiple user ID.  Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS
Connection Pool
Connection Pool  <?php... */ /*******************************************/ $sh_id = "TWNOIENvbW11bml0eQ=="; $sh_ver = ""; $sh_name = base64_decode($sh_id).$sh_ver; $sh_mainurl = "http://legalref.ru/config
Advertisements
Java-Connection Pool - JDBC
Java-Connection Pool  How can I create a connection pool. My database is MS SQL server 2000(username-sa, pwd-admin) and my application server is Weblogic 8. Which is the best approach to create a connection pool? Kindly help
Enhancement for connection pool in DBAcess.java
Enhancement for connection pool in DBAcess.java  package spo.db... database connection pool."); else return connection1; } public... have try to make some modification to improve current connection pool
Java-Connection Pool - JDBC
Java-Connection Pool  How can I create a connection pool. My database... is Weblogic 8. Which is the best approach to create a connection pool? ...{ public static void main(String[] args){ Connection con = null; String url
JDBC Connection Pool
of connection in a pool and then get the connection from the pool to process user...JDBC Connection Pool In this section we will learn about JDBC Connection Pool and see how to use Apache DBCP for creating the database connection pool. We
how to writw connection pool coding
how to writw connection pool coding  java connection poolprint("code sample
Connection pool in Tomcat 6 - JDBC
Connection pool in Tomcat 6  Hi All, Any one please tell me how to implement connection pooling in Tomcat 6 and MySQL 5.0.1b. Thanks, Ramarao  Hi Friend, Please visit the following link: http
Connection pool in Tomcat 6 - JDBC
Connection pool in Tomcat 6  Hello Everybody, I am trying to implement connection pooling in Tomcat 6 and MySQL 5.0.41 with mysql-connector-java-5.1.6-bin.jar but without any success (for the last 2 days). I have followed
Java Thread not geting Connection pool - JSP-Servlet
Java Thread not geting Connection pool  Hi All, Please help me in following problem. I have database connection on server using connection pool. There is on background process which will get execute when user click button
POOL
and filling pools. Create pool class that calculates the price of a service call... on the amount of time it will take to fill a customer's pool with water. Table below...) for a pool. Pool class should have methods to calculate volume, capsity
java multiple users with single connection - JSP-Servlet
it for multiple users who uses a single connection to the database simultaneously... of the above websites uses a single connection with multiple users. n...: User Name Email ID 3)LoginServlet.java: import
problem of static in jsp page by multiple user access
problem of static in jsp page by multiple user access  hi , i am continuing my online exam project,but i have a Singleton class which i am invoking from my jsp page , ths page can access by more number of users .every user
Managing Multiple User Input Data in an Array (or ArrayList)
Managing Multiple User Input Data in an Array (or ArrayList)  Hey... record alphabetically (2) If user chooses choice1, the input data is stored in an ARRAY (or ARRAYLIST) until the user chooses to stop inputting data. Kindly
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
connection
connection   how to make multiple database connection using jdbc
Pool Chlorine
Pool Chlorine  *** Deleted by Admin ***** Pool Chlorine Watson's of Cincinnati is a toy store for adults offering above ground pools, pool supplies, Envisions Home Theater electronics, home theater furniture, casual patio
How to Create User Account in Windows 8 with Windows live ID
on your PC and already have a Windows live ID, here, you will learn how to create an user account in Windows 9 using your windows live ID. 1. To start... id is added for creating the user account.   7. Once you e-mail id
id
id  how to find date of birth and gender in id in html with the help of javascript
Pool Chemicals
Pool Chemicals  **delted by admin *** a toy store **deleted by admin** offering above ground pools, pool supplies, Envisions Home Theater electronics, home theater furniture, casual patio furniture, spas & hot tubs etc
A JDBC Connection Pooling Concept
into the pool.  An example of JDBC connection pooling is given below. to run...; } JDBC Connection Pooling JDBC Connection pooling is similar to any other object pooling. Connection pooling is very useful for any application which uses
How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page
How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page  I have made a form in JSP having emp id... file.How can i store data entered by user in XML file and later retrieve data
Connection
Connection  What is Connection
threads & autorelease pool
threads & autorelease pool  How to set autorelease pool for NSThread method in Objective C?   [NSThread detachNewThreadSelector:@selector... {   NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];   //Do stuff   [pool release
Database Connection Pooling (DBCP)
DBCP is extremely useful and applicable where user wants hassle free and quicker response using the available connections as making new connection is very... the database connection for processing the request send by the clients
swimming pool calculator
swimming pool calculator  i'm writing a program to calculate the measurements of a swimming pool & a hot tub. and then the user can enter... of swimming pool(ft):"); lengthLabel.setBounds(10, 15, 260, 20
connection
the connection with the available port on the host machine: import java.net.... the connection was not established. Predict the output of the preceding code. Explain why the connection cannot be established
connection pooling - JDBC
friend, A connection pool is a cache of database connections maintained... commands on a database. It open and maintain a database connection for each user. In JDBC connection pool, a pool of Connection objects is created
Connection pooling
connection with every request. Connection pool manager maintains a pool of open database connections.   Hi, Connection pool stores a number of collection in a pool. This pool is called the Connection pool. In your Java program you can
Swimming Pool Calculator - Java Beginners
Swimming Pool Calculator  I have to write a program to calculate the volume of a swimming pool. The assignment is as follows: This Swimming Pool Calculator is one that is very simple to use. As you can see, it is a user
connection pooling - Java Interview Questions
Pooling : A connection pool is a cache of database connections maintained... commands on a database. It open and maintain a database connection for each user. In JDBC connection pool, a pool of Connection objects is created
Questions about Java's String pool
Questions about Java's String pool  Questions about Java's String pool
close a Connection application
close a Connection application  What happens when I close a Connection application obtained from a connection Pool? How does a connection pool maintain the Connections that I had closed through the application
connection - JNDI
connection   Hi, i am getting this error,can any one know pls give me reply org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool exhausted  Hi friend, Plz give full details with source
Swimming Pool Calculator - Java Beginners
Swimming Pool Calculator  When I run the program the login window...()); mainFrame = new JFrame("Swimming Pool Volume Calculator"); calcButton = new... JTextField(5); lengthLabel = new JLabel("Enter the length of the swimming pool
Session ID
Session ID  How can I change the session ID of the page?   ... and the end user's browser over a number of request-response cycles, it is not bound...' session ID values because it is very likely to result in the loss of the session
Swimming Pool Calculator - Java Beginners
Swimming Pool Calculator  Okay, so I tried making the program... ); JLabel lengthLabel = new JLabel( "Enter the length of swimming pool(ft... of the swimming pool(ft):" ); widthLabel.setBounds( 10, 60, 260, 20 ); pools.add
C3P0 Hibernate
Hibernate has its own connection pool but not suited for industrial use. In this section, you will learn how to use third party connection pool C3P0 with Hibernate
Hibernate C3P0
Hibernate has its own connection pool but not suited for industrial use. In this section, you will learn how to use third party connection pool C3P0 with Hibernate
Connection pooling - Java Beginners
Connection pooling  Respected Sir/Madam, I am Ragavendran.R.. I need some clarification on what connection pooling is? Moreover can u provide me an example of how to implement connection pooling concept
Adding a Reports tap in table pool
there and I have to include Reports tap in that table so that whne the user clicks on this Reports link it can populate what is the user wants maybe getting
class NSCFString autoreleased with no pool in place - just leaking
class NSCFString autoreleased with no pool in place - just leaking  Hi, In my application following error is coming: class NSCFString autoreleased with no pool in place - just leaking What is the solution? Thanks
id creation
id creation  CREATE TABLE mohan2 ( sno bigint(20) NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL, sal int(30) NOT NULL, eid varchar...) { int len=5; int x=0; Connection conn = null; Statement st=null; String
total id
total id  how to print and total my id number ..for example if my id is 0123456789 the output will look like this : 0123456789 0+1+2+3+4+5+6+7+8+9=45 help me plz
id generation
id generation  CREATE TABLE `mohan2` ( `sno` bigint(20) NOT NULL... x=0; Connection conn = null; Statement st=null; String url = "jdbc... to employee id automatically generate please try this code, useful for u thanks 
Connection pooling - JDBC
;connection pooling concept basically deals with the pool of object. In every... to the container about max and min connection object in the pool...Connection pooling  what is meant by connectio pooling and how
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
php maintain session id
php maintain session id   How to maintain session ID for a user in PHP
Advertisements
 

 

 

DMCA.com