
556 Implementing Web Applications with CM Information Integrator for Content and ODWEK
Example: B-8 RBConnectionPool.java
import java.net.*;
import java.beans.*;
import javax.servlet.http.*;
import com.ibm.mm.beans.*;
/**
* Connection pooling.
*/
public class RBConnectionPool {
private static CMBConnectionPool connectionPool;
/**
* Obtains a connection from the connection pool. If a connection does
* not exist, a new one is established.
*/
public static synchronized CMBConnection getConnection(HttpServletRequest
request)
throws
IllegalAccessException, MalformedURLException, InstantiationException,
ClassNotFoundException, PropertyVetoExcep