Home > Articles > Programming > Java

Database Connection Pooling

As previously discussed, database connections should usually not be created within the servlet's service(), doGet() , or doPost() method. Creating a new database connection to service each new request greatly reduces servlet performance. Of course, this performance penalty can be avoided by defining the database Connection object as a servlet instance variable and establishing the connection from within the servlet's init() method. This approach was first demonstrated in Listing 16.2. Though it may work well for low-traffic Web sites, there is a major disadvantage to this approach. The drawback is that all clients must share a single database connection. For heavy-traffic sites, any number of requests may arrive concurrently. If the first request grabs the database connection, all other requests are queued and forced to wait until the connection is available. In addition, this approach may present thread safety concerns. Fortunately, connection pooling provides a solution to these problems.

NOTE

Support for connection pooling was added to JDBC 2.0 as part of the JDBC 2.0 Optional Package. This package is based on the JDBC 2.0 Standard Extension API specification. The Standard Extension API allows JDBC 2.0 driver vendors to implement connection pooling in a standard way such that code written to take advantage of connection pools is portable across JDBC drivers and databases. The JDBC 2.0 Standard Extension API is contained within the javax.sql package as opposed to the basic java.sql package. Connection pooling and other advanced functionality was added as a standard extension in order to keep the core JDBC API as small and simple as possible. Unlike JDBC 2.0, the javax.sql package is included in the basic JDBC3.0 distribution. Though available with many new drivers, connection pooling is demonstrated here for educational purposes (and is useful for older drivers).

Database connection pooling is the process of establishing a set, or pool, of database connections before they are needed. This pool of connections is often stored in a connection broker object that controls access to the connections. When a client requires a database connection, it simply asks the connection broker for an available (or free) connection. The broker selects a free connection from the pool, flags the connection as unavailable (or busy), and returns it to the client. Since it was created previously, the broker can return a connection almost instantly without the overhead required to establish a new connection. When the connection is no longer needed, the client returns it to the broker, who now flags it as available. In addition to handing out connections, the broker is responsible for all details regarding the maintenance of the connection pool. This may include occasionally refreshing database connections by dropping and recreating them or establishing new connections when the pool of available connections is exhausted by numerous concurrent requests. Listing 16.11 presents a connection broker object called ConnectionPool.

Listing 16.11 ConnectionPool manages a pool of database connections.

import java.sql.*; 
import java.util.*; 

/** 
 * ConnectionPool creates a pool of connections of the specified 
 * size to the specified database. The connection pool object 
 * allows the client to specify the JDBC driver, database, 
 * username, and password. In addition, the client can also 
 * specify the number of connections to create when this class is 
 * instantiated, the number of additional connections to create 
 * if all connections are exhausted, and the absolute maximum 
 * number of connections. 
 * 
 * @author Dustin R. Callaway 
 */ 
public class ConnectionPool 
{ 
private String jdbcDriver = ""; 
private String dbUrl = ""; 
private String dbUsername = ""; 
private String dbPassword = ""; 
private String testTable = ""; 
private int initialConnections = 10; 
private int incrementalConnections =5; 
private int maxConnections = 50; 
private Vector connections = null; 
/** 
 * Constructor stores the parameters passed by the calling 
 * object. 
 * 
 * @param jdbcDriver String containing the fully qualified name 
 * of the jdbc driver (class name and full package info) 
 * @param dbUrl String containing the database URL 
 * @param dbUsername String containing the username to use when 
 * logging into the database 
 * @param dbPassword String containing the password to use when 
 * logging into the database 
 */ 
public ConnectionPool(String jdbcDriver, String dbUrl, 
String dbUsername, String dbPassword) 
{ 
this.jdbcDriver = jdbcDriver; 
this.dbUrl = dbUrl; 
this.dbUsername = dbUsername; 
this.dbPassword = dbPassword;
} 
/** 
 * Returns the initial number of connections to create. 
 * 
 	 * @return Initial number of connections to create. 
  	 */ 
public int getInitialConnections() 
{ 
return initialConnections; 
} 

/** 
 	 * Sets the initial number of connections to create. 
 * 
 * @param initialConnections Initial number of connections to 
 * create 
 */ 
public void setInitialConnections(int initialConnections) 
{ 
this.initialConnections = initialConnections; 
} 

/**
 * Returns the number of incremental connections to create if 
 * the initial connections are all in use. 
 * 
 * @return Number of incremental connections to create. 
 */ 
public int getIncrementalConnections() 
{ 
return incrementalConnections; 
} 

/** 
 * Sets the number of incremental connections to create if 
 * the initial connections are all in use. 
 * 
 *@param incrementalConnections Number of incremental 
 * connections to create. 
 */ 
public void setIncrementalConnections( 
int incrementalConnections) 
{ 
this.incrementalConnections = incrementalConnections; 
} 

/** 
 * Returns the absolute maximum number of connections to 
 	 * create. If all connections are in use, the getConnection() 
 * method will block until one becomes free. 
 * 
 * @return Maximum number of connections to create. 
 */
public int getMaxConnections() 
{ 
return maxConnections; 
} 

/** 
 * Sets the absolute maximum number of connections to create. 
 * If all connections are in use, the getConnection() method 
 * will block until one becomes free. 
 * 
 * @param maxConnections Maximum number of connections to 
 * create. 
 */ 
public void setMaxConnections(int maxConnections) 
{ 
this.maxConnections = maxConnections; 
} 

/** 
 * Returns the name of the table that should be tested to 
 * insure that the database connection is still open. 
 * 
 * @return Name of the database table used to test the 
 * connection. 
 */ 
public String getTestTable() 
{ 
return testTable; 
} 

/**
 * Sets the name of the table that should be tested to insure 
 * that the database connection is still open. 
 * 
 * @param testTable Name of the database table used to test the 
 * connection. 
 */ 
public void setTestTable(String testTable) 
{ 
this.testTable = testTable;
} 

/** 
 * Creates a pool of connections. Number of connections is 
 * determined by the value of the initialConnections property. 
 */ 
public synchronized void createPool() throws Exception
{ 
//make sure that createPool hasn't already been called 
if (connections "` null) 
{ 
return; //the pool has already been created, return 
} 

//instantiate JDBC driver object from init param jdbcDriver 
Driver driver = (Driver) 
(Class.forName(jdbcDriver).newInstance()); 

DriverManager.registerDriver(driver); //register JDBC driver 

connections = new Vector(); 
  
//creates the proper number of initial connections 
createConnections(initialConnections); 
} 

/** 
 * Creates the specified number of connections, places them in
 * a PooledConnection object, and adds the PooledConnection to 
 * the connections vector. 
 * 
 * @param numConnections Number of connections to create. 
 */ 
private void createConnections(int numConnections) throws 
SQLException 
{ 
//create the specified number of connections 
for (int x=0; x < numConnections; x++) 
{ 
//have the maximum number of connections been created? 
//a maxConnections value of zero indicates no limit 
if (maxConnections > 0 && 
connections.size() >= maxConnections) 
{ 
break; //break out of loop because we're at the maximum 
} 

//add a new PooledConnection object to connections vector 
connections.addElement(new PooledConnection(
newConnection())); 

System.out.println("Database connection created..."); 
} 
} 

/** 
 * Creates a new database connection and returns it. 
 * 
 * @return New database connection. 
 */ 
private Connection newConnection() throws SQLException 
{ 
//create a new database connection 
Connection conn = DriverManager.getConnection (dbUrl, 
dbUsername, dbPassword); 

//if this is the first connection, check the maximum number 
//of connections supported by this database/driver 
if (connections.size()== 0) 
{ 
DatabaseMetaData metaData = conn.getMetaData(); 
int driverMaxConnections = metaData.getMaxConnections(); 

//driverMaxConnections value of zero indicates no maximum 
//or unknown maximum 
if (driverMaxConnections > 0 && 
maxConnections > driverMaxConnections) 
{ 
maxConnections = driverMaxConnections; 
} 
} 
return conn; //return the new connection 
} 
	
/** 
 * Attempts to retrieve a connection from the connections 
 * vector by calling getFreeConnection(). If no connection is
 * currently free, and more can not be created, getConnection() 
 * waits for a short amount of time and tries again. 
 * 
 * @return Connection object 
 */ 
public synchronized Connection getConnection()throws 
SQLException 
{ 
//make sure that createPool has been called 
if (connections == null) 
{ 
return null; //the pool has not been created 
} 

Connection conn = getFreeConnection();//get free connection 

while (conn == null) //no connection was currently free 
{ 

//sleep for a quarter of a second and then check to see if 
//a connection is free 
wait(250); 

 			conn = getFreeConnection(); //try again to get connection 
} 

return conn; 
} 

 	/** 
 * Returns a free connection from the connections vector. If no 
 * connection is available, a new batch of connections is 
 * created according to the value of the incrementalConnections 
 * variable. If all connections are still busy after creating 
 * incremental connections, the method will return null. 
 * 
 * @return Database connection object 
 */ 
private Connection getFreeConnection() throws SQLException 
{ 
//look for a free connection in the pool 
Connection conn = findFreeConnection(); 

if (conn == null) 
{ 
//no connection is free, create additional connections 
createConnections(incrementalConnections); 

//try again to find a free connection 
conn = findFreeConnection();

if (conn == null) 
{ 
//there are still no free connections, return null 
return null; 
} 
} 

 		return conn; 
} 

/** 
 * Searches through all of the pooled connections looking for 
 * a free connection. If a free connection is found, its 
 * integrity is verified and it is returned. If no free 
 * connection is found, null is returned. 
 * 
 * @return Database connection object. 
 */ 
private Connection findFreeConnection()throws SQLException 
{ 
Connection conn = null; 
PooledConnection pConn = null; 

Enumeration enum = connections.elements(); 

//iterate through the pooled connections looking for free one 
while (enum.hasMoreElements()) 
{ 
pConn =(PooledConnection)enum.nextElement(); 

if (!pConn.isBusy()) 
{
//this connection is not busy, get a handle to it 
conn = pConn.getConnection(); 

pConn.setBusy(true); //set connection to busy 

//test the connection to make sure it is still valid 
if	(!testConnection(conn)) 
{ 
//connection is no longer valid, create a new one 
conn = newConnection(); 

//replace invalid connection with new connection 
pConn.setConnection(conn); 
} 

break; //we found a free connection, stop looping 
} 
} 
  
return conn; 
} 
  
/** 

 * Test the connection to make sure it is still valid. If not, 
 * close it and return FALSE. 
 *
 * @param conn Database connection object to test. 
 * @return True indicates connection object is valid. 
 */ 
private boolean testConnection(Connection conn) 
{ 
try 
{ 
//determine if a test table has been designated 
if (testTable.equals("")) 
{ 
//There is no table to test the database connection so 
//try setting the auto commit property. This verifies 
//a valid connection on some databases. However, the 
//test table method is much more reliable. 
conn.setAutoCommit(true); 
} 
else 
{ 
//check if this connection is valid 
Statement stmt = conn.createStatement(); 
stmt.execute("select count(*) from " + testTable); 
} 
} 
catch(SQLException e) 
{ 
//connection is no longer valid, attempt to close it 
closeConnection(conn); 

return false; 
} 

return true; 
} 

 	/** 
 * Turns off the busy flag for the current pooled connection. 
 * All ConnectionPool clients should call returnConnection() as 
 * soon as possible following any database activity (within a 
 * finally block). 
 * 
 * @param conn Connection object 
 */ 
public void returnConnection(Connection conn)
{ 
//make sure that createPool has been called 
if (connections== null) 
{ 
return; //the pool has not been created 
} 

PooledConnection pConn = null; 

Enumeration enum = connections.elements(); 

//iterate through the pooled connections looking for the 
//returned connection 
while (enum.hasMoreElements()) 
{ 
pConn =(PooledConnection)enum.nextElement(); 
 
//determine if this pooled connection contains the returned 
//connection 
if (conn == pConn.getConnection()) 
{ 
//the connection has been returned, turn off busy flag 
pConn.setBusy(false); 

break; 
} 
}
} 

/** 
 * Refreshes all of the connections in the connection pool. 
 */ 
public synchronized void refreshConnections()throws 
SQLException 
{ 
//make sure that createPool has been called 
if (connections == null) 
{ 
return; //the pool has not been created 
} 

PooledConnection pConn = null; 

Enumeration enum = connections.elements(); 

while (enum.hasMoreElements()) 
{ 
pConn =(PooledConnection)enum.nextElement(); 

if (!pConn.isBusy()) 
{
wait(10000); //wait 5 seconds 
} 

closeConnection(pConn.getConnection()); 

 		pConn.setConnection(newConnection()); 

 		pConn.setBusy(false); 
} 
} 
/** 
 * Closes all of the connections and empties the connection 
 * pool. Once this method has been called, the createPool() 
 * method can again be called. 
 */ 
public synchronized void closeConnections() throws SQLException 
{ 
//make sure that createPool has been called 
if (connections == null) 
{ 
return; //the pool has not been created 
} 

PooledConnection pConn = null; 

Enumeration enum = connections.elements(); 

while (enum.hasMoreElements()) 
{ 
pConn = (PooledConnection)enum.nextElement(); 

if (!pConn.isBusy()) 
{ 
wait(5000); //wait 5 seconds 
} 
closeConnection(pConn.getConnection()); 

connections.removeElement(pConn); 
} 

connections = null; 
} 
  
/** 
 * Closes a database connection. 
 * 
 * @param conn Database connection to close. 
 */ 
private void closeConnection(Connection conn) 
{ 
try 
{ 
conn.close();
} 
catch (SQLException e) 
{ 
} 
} 
  
/** 
 * Sleeps for a specified number of milliseconds. 
 * 
 *@param mSeconds Number of seconds to sleep. 
 */ 
private void wait(int mSeconds) 
{ 
try 
{ 
Thread.sleep(mSeconds); 
} 
catch (InterruptedException e) 
{ 
} 
} 

/** 
 * Inner class encapsulating the properties of a pooled 
 * connection object. These properties include a JDBC database 
 * connection object and a flag indicating whether or not the 
 * database object is currently in use (busy). 
 */ 
class PooledConnection 
{ 
Connection connection = null; 
boolean busy = false; 

public PooledConnection(Connection connection) 
{ 
this.connection = connection; 
} 

public Connection getConnection() 
{ 
return connection; 
} 

  		public void setConnection(Connection connection) 
{ 
this.connection = connection; 
} 
  
public boolean isBusy() 
{ 
return busy; 
} 
  
public void setBusy(boolean busy) 
{ 
this.busy = busy; 
} 
} 
}

The ConnectionPool class is a typical connection broker that provides methods to retrieve available connections, return connections to the pool, refresh connections, and close connections. Listing 16.12 presents a version of Listing 16.10 that has been adapted to use the ConnectionPool class to manage a database connection pool. The output created by this servlet is identical to that shown in Figure 16.8.

Listing 16.12 Servlet that employs database connection pooling.

import javax.servlet.*; 
import javax.servlet.http.*; 
import java.io.*; 
import java.sql.*; 

/** 
 * EmployeeInfo returns employee data presented in an HTML table 
 * that is dynamically created with help from the 
 * ResultSetMetaData object. This servlet utilizes the
 * ConnectionPool class to manage a pool of database connections. 
 */
public class EmployeeInfo extends HttpServlet 
{ 
ConnectionPool connectionPool = null; 

/** 
 * Creates a connection pool. 
 */ 
public void init() throws ServletException 
{ 
String jdbcDriver = "org.gjt.mm.mysql.Driver"; 
String dbURL ="jdbc:mysql://localhost/phonebook"; 

try 
{ 
//instantiate the connection pool object by passing the 
//jdbc driver, database URL, username, and password 
connectionPool = new ConnectionPool(jdbcDriver, dbURL, 
"", ""); 
  
//specify the initial number of connections to establish 
connectionPool.setInitialConnections(5); 

//specify number of incremental connections to create if 
//pool is exhausted of available connections 
connectionPool.setIncrementalConnections(5); 

//specify absolute maximum number of connections to create 
connectionPool.setMaxConnections(20); 

//specify a database table that can be used to validate the 
//database connections (this is optional) 
connectionPool.setTestTable("EMPLOYEE"); 
connectionPool.createPool(); //create the connection pool 
} 
catch(Exception e) 
{ 
System.out.println("Error: " + e); 
} 
}

/** 
 * Dynamically constructs an HTML table from a ResultSet object 
 * containing employee information. 
 */ 
public void doGet(HttpServletRequest request, 
HttpServletResponse response) throws ServletException, 
IOException 
{ 
Connection dbConn = null; 
 
response.setContentType("text/html"); 
  
PrintWriter out = response.getWriter(); 

try 
{ 
//get free connection from pool 
dbConn = connectionPool.getConnection(); 

Statement stmt = dbConn.createStatement(); 

//create ResultSet containing employee information 
String sql = "select LAST_NAME, FIRST_NAME, PHONE, " + 
"EMAIL from EMPLOYEE order by LAST_NAME, FIRST_NAME"; 
ResultSet rs = stmt.executeQuery(sql); 

//get ResultSetMetaData object from ResultSet 
ResultSetMetaData rsMeta = rs.getMetaData(); 

//get number of columns in ResultSet 
int cols = rsMeta.getColumnCount(); 

out.println("<TABLE BORDER=\"1\">"); //begin dynamic table 

//create header row containing column titles 
out.println("<TR>"); 
for (int i = 1; i <= cols; i++) 
{ 
out.println("<TH>" + rsMeta.getColumnLabel(i) +"</TH>"); 
} 
out.println("</TR>"); 

//create a row for each row in result set 
while (rs.next()) 
{ 
out.println("<TR>"); 
for (int i = 1; i <= cols; i++) 
{ 
out.println("<TD>" + rs.getString(i) + "</TD>"); 
} 
out.println("</TR>"); 
} 

out.println("</TABLE>"); //end dynamic table 

out.close(); 
} 
catch (Exception e) 
{ 
System.out.println(e.getMessage()); 
} 
finally 
{ 
//return connection to pool (always within a finally block) 
connectionPool.returnConnection(dbConn); 
 	} 
 	} 
}

NOTE

It is imperative that you always return connections to the pool. Any connections that are not returned properly (using the ConnectionPool object's returnConnection() method) will become permanently unavailable. If connections are not returned, the entire pool can be quickly exhausted. In addition, connections should be returned as soon as possible to ensure that the maximum number of connections are available to service other requests. Finally, always return connections to the pool from within a finally block. This practice guarantees that all connections will be returned, even if an unexpected error occurs.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020