« September 22, 2006 | Main | September 29, 2006 »

September 24, 2006 Archives

September 24, 2006

JE JCA: JEConnection.removeDatabase and truncateDatabase

The Berkeley Java Edition (JE) Java Connection Architecture (JCA) Resource Adapter (RA) provides  openDatabase() and openSecondaryDatabase() methods.  These methods are backed by a set of Database handle caches and are provided in the JEConnection API so that each connection to JE within the J2EE environment does not have to incur the cost of opening a database.  Instead, if the DatabaseConfig matches an entry in the cache, that entry is returned.

Recently, a user noted that there was no way to delete a database using the JE Resource Adapter because Database.removeDatabase() and Database.truncateDatabase() both require the underlying handle to be closed first.  With the JEConnection cache of handles, it is not possible to force closure of all handles in the cache (nor clearing the cache).  For JE 3.1.0, we have added JEConnection.removeDatabase() and JEConnection.truncateDatabase().  These methods first clear the cache (closing each Database in the process) and then perform the underlying delete/truncate operation.

About September 2006

This page contains all entries posted to Charles Lamb's Blog in September 2006. They are listed from oldest to newest.

September 22, 2006 is the previous archive.

September 29, 2006 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle