<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/smartpool/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/smartpool/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/smartpool/feature-requests/</id><updated>2005-08-23T15:32:00Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Exception handle for each database pool in the poolconfig.xm</title><link href="https://sourceforge.net/p/smartpool/feature-requests/1/" rel="alternate"/><published>2005-08-23T15:32:00Z</published><updated>2005-08-23T15:32:00Z</updated><author><name>HuyAnh Ngo</name><uri>https://sourceforge.net/u/userid-1333759/</uri></author><id>https://sourceforge.net813632c769e35c0a6fc5596a3d981aabacb0e432</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Currently, if there is bad database connection in the&lt;br /&gt;
pool_config.xml. the initialization will failed for all&lt;br /&gt;
database in the config file.  Can we allow other&lt;br /&gt;
database to go throught the config  and just log the&lt;br /&gt;
error for the bad database?&lt;/p&gt;
&lt;p&gt;I changed the PoolManagerImpl.java a bit to work in my&lt;br /&gt;
enviroment.  I'd like to share it with you so that you&lt;br /&gt;
can make it better and include it in the next version.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Anh Ngo&lt;/p&gt;
&lt;p&gt;private void loadConfig(File file ) throws&lt;br /&gt;
ConnectionPoolException {&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="n"&gt;Collection&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;  &lt;span class="n"&gt;new&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;ConfigFileParser().getPoolConfig(file);&lt;br /&gt;
        Iterator it = c.iterator();&lt;br /&gt;
        while (it.hasNext()) {&lt;br /&gt;
            PoolConfig pc = (PoolConfig)it.next();&lt;br /&gt;
            String poolName = pc.getPoolName();&lt;br /&gt;
            debug.print("" + pc);&lt;br /&gt;
            if (pc.isDefaultPool()) {&lt;br /&gt;
                if (defaultPool != null)&lt;br /&gt;
                    throw new ConnectionPoolException("More than one&lt;br /&gt;
Connection Pools cannot have default set to 'true'");&lt;br /&gt;
                defaultPool = poolName;&lt;br /&gt;
            }&lt;/p&gt;
&lt;p&gt;try {&lt;br /&gt;
ConnectionPool pool = new ConnectionPool(pc);&lt;br /&gt;
poolMap.put(poolName, pool);&lt;br /&gt;
}&lt;br /&gt;
catch(Exception e)&lt;br /&gt;
{&lt;br /&gt;
e.printStackTrace();&lt;br /&gt;
}&lt;br /&gt;
        }&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry></feed>