Announce: Commons-IO 1.3.2
Hi, the Jakarta Commons Team (or Apache Commons Team, nowadays) is glad to announce the release of Commons IO 1.3.2. Commons IO is a library of low-level utilities to assist with developing IO functionality. This is a bug fix release with the following changes: - Some tests, which are implicitly assuming a Unix-like file system, are now skipped on Windows. Fixes IO-115. - Created the FileCleaningTracker, basically a non-static version of the FileCleaner, which can be controlled by the user. Fixes IO-116. - EndianUtils - both readSwappedUnsignedInteger(...) methods could return negative numbers due to int/long casting. Fixes IO-117. Thanks to Hiroshi Ikeda. Commons-IO 1.3.2 is available from http://jakarta.apache.org/site/downloads/downloads_commons-io.cgi Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Announce: Commons-IO 1.3.2
The download link on this page: Thank you, Gary > -Original Message- > From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 1:05 PM > To: general@jakarta.apache.org > Subject: Announce: Commons-IO 1.3.2 > > Hi, > > the Jakarta Commons Team (or Apache Commons Team, nowadays) is glad to > announce the release of Commons IO 1.3.2. Commons IO is a library of > low-level utilities to assist with developing IO functionality. This > is a bug fix release with the following changes: > > - Some tests, which are implicitly assuming a Unix-like file system, > are now skipped > on Windows. Fixes IO-115. > - Created the FileCleaningTracker, basically a non-static version of > the FileCleaner, > which can be controlled by the user. Fixes IO-116. > - EndianUtils - both readSwappedUnsignedInteger(...) methods could > return negative > numbers due to int/long casting. Fixes IO-117. Thanks to Hiroshi Ikeda. > > Commons-IO 1.3.2 is available from > > http://jakarta.apache.org/site/downloads/downloads_commons-io.cgi > > Jochen > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Announce: Commons-IO 1.3.2
Oops, I mean: The download link on this page: http://jakarta.apache.org/site/downloads/downloads_commons-io.cgi?Preferred=http%3A%2F%2Fwww.apache.org%2Fdist labeled '1.3.2.zip' for the Binary points to: http://www.apache.org/dist/jakarta/commons/io/binaries/commons-io-1.3.2.zip but the file is: http://www.apache.org/dist/jakarta/commons/io/binaries/commons-io-1.3.2-bin.zip Thank you, Gary > -Original Message- > From: Gary Gregory > Sent: Tuesday, July 03, 2007 2:48 PM > To: 'Jakarta General List' > Subject: RE: Announce: Commons-IO 1.3.2 > > The download link on this page: > > > Thank you, > Gary > > > -Original Message- > > From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 03, 2007 1:05 PM > > To: general@jakarta.apache.org > > Subject: Announce: Commons-IO 1.3.2 > > > > Hi, > > > > the Jakarta Commons Team (or Apache Commons Team, nowadays) is glad to > > announce the release of Commons IO 1.3.2. Commons IO is a library of > > low-level utilities to assist with developing IO functionality. This > > is a bug fix release with the following changes: > > > > - Some tests, which are implicitly assuming a Unix-like file system, > > are now skipped > > on Windows. Fixes IO-115. > > - Created the FileCleaningTracker, basically a non-static version of > > the FileCleaner, > > which can be controlled by the user. Fixes IO-116. > > - EndianUtils - both readSwappedUnsignedInteger(...) methods could > > return negative > > numbers due to int/long casting. Fixes IO-117. Thanks to Hiroshi Ikeda. > > > > Commons-IO 1.3.2 is available from > > > > http://jakarta.apache.org/site/downloads/downloads_commons-io.cgi > > > > Jochen > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DBCP] Managed Connection support
I just posted a patch JIRA which adds support for container managed connections to DBCP. In an environment where you have an accessible transaction manger such as Tomcat (when installed), Geronimo or OpenEJB, this patch allows adds support for pooling managed connections to an XA or non-XA data base. There are many libraries that use DBCP for non-managed environments, but when additional resources such as a JMS provider are added to the mix, they have to replace DBCP with something else. If you search google for XA and DBCP, you will loads of painful direction on how to replace DBCP with something else. I personally want to use DBCP in Tomcat with ActiveMQ. Anyways, enough with motivation To use the new code, you need access to a TranactionManager (this code just creates a new Geronimo one). transactionManager = new TransactionManagerImpl(); Then you either create an XADataSource and DataSourceXAConectionFactory or as this code does, create a normal DBCP ConnectionFactory and wrap it with a LocalXAConectionFactory Properties properties = new Properties(); properties.setProperty("user", "username"); properties.setProperty("password", "password"); ConnectionFactory connectionFactory = new DriverConnectionFactory( new TesterDriver(), "jdbc:apache:commons:testdriver", properties); // wrap it with a LocalXAConnectionFactory XAConnectionFactory xaConnectionFactory = new LocalXAConnectionFactory( transactionManager, connectionFactory); Now you create a pool as normal (full reuse here). pool = new GenericObjectPool(); pool.setMaxActive(getMaxActive()); pool.setMaxWait(getMaxWait()); // create the pool object factory PoolableConnectionFactory factory = new PoolableConnectionFactory( xaConnectionFactory, pool, null, "SELECT DUMMY FROM DUAL", true, true); pool.setFactory(factory); Finally, you create a special ManagedDataSource using the pool above and the special TransactionRegistry object obtained from the XAConnectionFactory. ds = new ManagedDataSource(pool, xaConnectionFactory.getTransactionRegistry()); ds.setAccessToUnderlyingConnectionAllowed(true); That's it. The data source and connections work as normal until you start a transaction using the TransactionManager. When you use a connection while the transaction is active, the connection is enlisted in the transaction. When the transaction is complete, the connection is committed (or rolledback) and the connection returns to normal. Most of the new code extends existing classes or uses existing classes without modification. The key to this reuse is the TransactionRegistry abstraction which maintains a map from the Connection to the XAResource for that connection. The XAResource is needed to enlist a connection in a transaction. The TransactionRegistry and associated TransationContext class encapsulate all interactions with the TransactionManager leaving the Connection implementation relatively simple (making reuse easier). For now the code is contained in the org.apache.commons.dbcp.managed package, but I would suspect we may want to spread it out amongst the existing packages instead of creating a feature specific package. I'm also not sure what additional interfaces people may want such as equivalents of the BasicDataSource or BasicDataSourceFactory. The code has tests and has javadoc, but it needs real world testing and some real docs. I'm going try hooking it into OpenEJB and running it's massive test suite with a couple of opensource DBs. Anyways, I hope you all like it and accept the patch. I'm around to help with changes or whatever. I also ran into a few bugs while working on this that are already reported in JIRA (like the close bugs) and am willing to help with those also. -dain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Announce: Commons-IO 1.3.2
Woohoo! Thanks for all the hard work Jochen. On 7/4/07, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: Hi, the Jakarta Commons Team (or Apache Commons Team, nowadays) is glad to announce the release of Commons IO 1.3.2. Commons IO is a library of low-level utilities to assist with developing IO functionality. This is a bug fix release with the following changes: - Some tests, which are implicitly assuming a Unix-like file system, are now skipped on Windows. Fixes IO-115. - Created the FileCleaningTracker, basically a non-static version of the FileCleaner, which can be controlled by the user. Fixes IO-116. - EndianUtils - both readSwappedUnsignedInteger(...) methods could return negative numbers due to int/long casting. Fixes IO-117. Thanks to Hiroshi Ikeda. Commons-IO 1.3.2 is available from http://jakarta.apache.org/site/downloads/downloads_commons-io.cgi Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- dIon Gillard Rule #131 of Acquisition: Information is Profit.
[VOTE] Release Candidate JMeter 2.3 RC1
I've created JMeter 2.3 RC1 in the directory: http://people.apache.org/~sebb/jmeter-2.3/dist Site/Docs are here: http://people.apache.org/~sebb/jmeter-2.3/site All feedback welcome. [ ]+1 - the release candidate looks OK, proceed with full release [ ]-1 - there is a problem (please indicate what it is) sebb AT apache DOT org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Release Candidate JMeter 2.3 RC1
Sebb, Just checking is this a vote to release 2.3RC1 from this location or to release 2.3 from this bundle? On 7/4/07, sebb <[EMAIL PROTECTED]> wrote: I've created JMeter 2.3 RC1 in the directory: http://people.apache.org/~sebb/jmeter-2.3/dist Site/Docs are here: http://people.apache.org/~sebb/jmeter-2.3/site All feedback welcome. [ ]+1 - the release candidate looks OK, proceed with full release [ ]-1 - there is a problem (please indicate what it is) sebb AT apache DOT org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- dIon Gillard Rule #131 of Acquisition: Information is Profit.