AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Object Pooling project

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools
View previous topic :: View next topic  
Author Message
David Boyer
Guest





PostPosted: Sun Dec 28, 2003 12:04 am    Post subject: New Object Pooling project Reply with quote



Hi all,

I've released a beta of my Object Pooling software and it's freely available
on my web site:

http://web.bvu.edu/staff/david/pooling/

This is an extensible Object Pooling system that could be extendend to
handle pooling of just about any Object type. The initial release contains a
full database connection pooling system.

The main distinction between this pooling system and the others I can find
is that there's no need to pre-configure the pools or use JNDI.


Back to top
Dave Glasser
Guest





PostPosted: Sat Jan 03, 2004 10:22 pm    Post subject: Re: New Object Pooling project Reply with quote



"David Boyer" <boyedav (AT) bvu (DOT) edu> wrote on Sat, 27 Dec 2003 18:04:49
-0600 in comp.lang.java.softwaretools:

Quote:
Hi all,

I've released a beta of my Object Pooling software and it's freely available
on my web site:

http://web.bvu.edu/staff/david/pooling/

This is an extensible Object Pooling system that could be extendend to
handle pooling of just about any Object type. The initial release contains a
full database connection pooling system.

The main distinction between this pooling system and the others I can find
is that there's no need to pre-configure the pools or use JNDI.


I'm not sure what you mean by "pre-configure" the pools, but the
pooling library that's part of the Apache Commons project is pretty
simple. Here's a code snippet that creates a pooling
javax.sql.DataSource, and it doesn't require JNDI:

DriverConnectionFactory connFactory
= new DriverConnectionFactory(driver, url, propertiess);

GenericObjectPool genericPool = new GenericObjectPool(null,
maxConnections);
genericPool.setWhenExhaustedAction(genericPool.WHEN_EXHAUSTED_FAIL);
PoolableConnectionFactory
poolableConnectionFactory
= new PoolableConnectionFactory(connFactory,
genericPool,null, null, false, true);
PoolingDataSource dataSource
= new PoolingDataSource(genericPool);
return dataSource;


--
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.