<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/smartpool/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/smartpool/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 23 Aug 2005 15:32:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/smartpool/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Exception handle for each database pool in the poolconfig.xm</title><link>https://sourceforge.net/p/smartpool/feature-requests/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HuyAnh Ngo</dc:creator><pubDate>Tue, 23 Aug 2005 15:32:00 -0000</pubDate><guid>https://sourceforge.net813632c769e35c0a6fc5596a3d981aabacb0e432</guid></item></channel></rss>