Re: Using Digester to store info into a Map

2006-06-15 Thread Simon Kitching
Hi Jeff, On Mon, 2006-06-12 at 08:04 -0700, Jeff Marendo wrote: Hello, Would anyone be able to tell me how to structure an XML rules file so that the Digester can create objects (from the example file below) and store them into a Map as opposed to a Collection? ?xml

Re: [Commons Configuration] Next version?

2006-06-15 Thread Michiel Kalkman
Hi, I don't want to push you, but isn't it an idea to temporarily add these missing classes to commons-config ? That way don't have to wait for the next release, and we can benefit from the changes made in the last six months (?). As soon as a new version on commons-lang is available a release

Re: Using Digester to store info into a Map

2006-06-15 Thread Jeff Marendo
Simon, Thanks for the reply and helpful information. If user is the root level, then you've not got a lot of object in the map :-) Yeah, actually, I did have a single file with multiple users listed within it as you had suggested, but I later changed the design so that each

DBCP - Why we close connection

2006-06-15 Thread Jawed Nazar Ali
Hello, try { conn = DriverManager.getConnection(jdbc:apache:commons:dbcp:example); stmt = conn.createStatement(); rset = stmt.executeQuery(args[1]); int numcols = rset.getMetaData().getColumnCount(); while(rset.next()) {

RE: DBCP - Why we close connection

2006-06-15 Thread Tahir Akhtar
When you get connection with this line DriverManager.getConnection(jdbc:apache:commons:dbcp:example); You are actually getting a connection wrapped in dbcp wrapper. When you call close, the wrapper method close is called instead of close on actual db driver. This wrapper releases the connection

RE: DBCP - Why we close connection

2006-06-15 Thread Alfredo Ledezma Melendez
The closing statements at the finally clause assures you the db resources are released even when an exception is thrown. This is a good practice, just imagine what will happen using the next code: try{ conn = DriverManager.getConnection(jdbc:apache:commons:dbcp:example);

Re: [commons] - Inconsistent way to locate filename when creating configuration

2006-06-15 Thread Oliver Heger
Oliver Heger wrote: [EMAIL PROTECTED] wrote: Hi Oliver, is there any particular reason why if, when conf/conf1.properties is in classpath, doing PropertiesConfiguration pc = new PropertiesConfiguration( conf/conf1.properties); gives org.apache.commons.configuration.ConfigurationException:

Re: [Commons Configuration] Next version?

2006-06-15 Thread Oliver Heger
Michiel Kalkman wrote: Hi, I don't want to push you, but isn't it an idea to temporarily add these missing classes to commons-config ? That way don't have to wait for the next release, and we can benefit from the changes made in the last six months (?). As soon as a new version on commons-lang

[VFS] Data timeout

2006-06-15 Thread Jared Graber
Hi, I have a daemon that polls an FTP/SFTP server using VFS. Unfortunately I ran into a problem where the daemon hangs. I am having a great deal of trouble duplicating this issue as it seems to happen after the daemon is running for many hours. Looking through the logs produced via the

commons fileupload

2006-06-15 Thread Robert J. Carr
I am attempting to use the fileupload package and having strange results. I have a file type form element that I am uploading an xml file through to. The xml file I'm uploading is about 1.1MB. However, when I print some of the metadata about the uploaded FileItem, here's what I get:

[ANNOUNCEMENT] Commons Chain 1.1 released

2006-06-15 Thread Niall Pemberton
The Commons Chain team is pleased to announce the release of Chain 1.1. http://jakarta.apache.org/commons/chain/ This release includes two new dispatch style commands, improvements to the LookupCommand and a number of bug fixes. For full details, see the Changes Report:

RE: [VFS] Data timeout

2006-06-15 Thread Jared Graber
Please ignore the first part of the email. The problem was that a timeout hadn't been set. I'm still curious to know if there is a more generic way to set the timeout so that as a user of the library I don't have to check the type of Builder I have. -Jared -Original Message- From:

RE: [collections] Decorator suggestion

2006-06-15 Thread Eric Jablow
Stephen Colebourne [mailto:[EMAIL PROTECTED] wrote: I wrote: Brian Goetz, in an article last year for IBM DeveloperWorks, suggested writing a set wrapper that would allow initialization code like: private final static Set COMMANDS = new UnmodifiableSetBuilder(new HashSet())

Re: DBCP - Why we close connection

2006-06-15 Thread Kenneth Huang
Hi, Jawed: I think you just want to know why it close conn in the end. (1) If you use DB connection pool(DBCP) to visit DB, conn.close() will put this instance to pool and can be used next time. (2) If you don't use DBCP in your app, conn.close() will release the resource used by this

Re: [commons] - Inconsistent way to locate filename when creating configuration

2006-06-15 Thread gabriele . garuglieri
Oliver Heger [EMAIL PROTECTED] scritti il 15/06/2006 19.01.08 Oliver Heger wrote: [EMAIL PROTECTED] wrote: Hi Oliver, is there any particular reason why if, when conf/conf1.properties is in classpath, doing PropertiesConfiguration pc = new PropertiesConfiguration(