Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / January 2004

Tip: Looking for answers? Try searching our database.

New Object Pooling project

Thread view: 
David Boyer - 28 Dec 2003 00:04 GMT
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.
Dave Glasser - 03 Jan 2004 22:22 GMT
"David Boyer" <boyedav@bvu.edu> wrote on Sat, 27 Dec 2003 18:04:49
-0600 in comp.lang.java.softwaretools:

>Hi all,
>
[quoted text clipped - 9 lines]
>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;

Signature

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

http://qform.sourceforge.net



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.