I asked this on "commons" mailing list as well, but
perhaps someone here could shed some light into the
following:

I'm getting a nullpointer when trying to do the
following:

GenericObjectPool connectionPool = new
GenericObjectPool(null);
DriverManagerConnectionFactory connectionFactory =
new
DriverManagerConnectionFactory("jdbc:mysql://10.117.7.18:3306/dow?autoReconnect=true",
"webusername", "password");
                        
PoolableConnectionFactory poolableConnectionFactory
= new PoolableConnectionFactory(connectionFactory,
connectionPool, null, null, false, true);
                        
PoolingDriver driver = new PoolingDriver();
                        
driver.registerPool("dow", connectionPool);
// the next line is throwing a nullpointer....
conn =
DriverManager.getConnection("jdbc:apache:commons:dbcp:dow");




can anyone help or at least point me in the right
direction?

I'm using MySQL as my Db, and the username/password
combo works when I try to access the dB from outside
the source code.

Thanks in advance,
Paul



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to