ConnectionDAO connectionDAO = new ConnectionDAO();
connectionDAO.session = com.googlecode.s2hibernate.struts2.plugin.util.HibernateSessionFactory
.getNewSession();
List<Connection> connectionList = connectionDAO.findAll();
logger.debug("connectionList size is: " + connectionList.size());
KeyedPoolableObjectFactory factory = PoolUtils
.synchronizedPoolableFactory(new HBaseConnectionPoolFactory());
HBaseConnectionPool pool = new HBaseConnectionPool(factory);
for (Connection connection : connectionList) {
logger.debug("Connection is: " + connection);
pool.addObject(connection);