Re: [collections] Name that data structure

2005-07-05 Thread Tim O'Brien
Wendy, you could most certainly use a LRUMap with a fixed size. Give each item a unique key and let the Map take care of uniqueness. LRUMap will take care of discarding the least recently used entry once it reached the maximum defined size, and the Iterator returns most recently used to

Re: [collections] Name that data structure

2005-07-05 Thread Tim O'Brien
Tim O'Brien wrote: Wendy, you could most certainly use a LRUMap with a fixed size. Give each item a unique key and let the Map take care of uniqueness. LRUMap will take care of discarding the least recently used entry once it reached the maximum defined size, and the Iterator returns most

DBCP: jocl and Configuration Parameters for ObjectPools

2005-07-05 Thread Mike Starkie
Is there a way to include the various configuration parameters for GenericObjectPool and GenericKeyedObjectPool directly in a .jocl file? For instance, maxActive, timeBetweenEvictionRunsMillis, and testWhileId. Must these parameters be set explicitly on the pools or can they be configured in the

Re: [csv] Creating a CSV component

2005-07-05 Thread Don Seiler
On 10:28 Sun 19 Jun , robert burrell donkin wrote: the discussions have moved onto dev but no consensus has been reached as yet. On Tue, 2005-06-14 at 18:14 +0300, Emmanouil Batsis wrote: Just wanted to ask whether you folks have chosen what to use for this. Is there any more

FileUploadException - the request was rejected because it's size is unknown

2005-07-05 Thread Guhn Chang
I am using the FileUpload 1.1 library in Weblogic 8.1 SP4, and am trying to get uploading to work in portlets. Whenever I try to parse my multipart content, I get an exception with the message the request was rejected because it's size is unknown. Here are some relevant code snippets.

RE: [betwixt] NullPointerException in 0.7RC1

2005-07-05 Thread Glenn Goldenberg
i tried the test out on RC2 and it still looks good... glenn -Original Message- From: robert burrell donkin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 3:43 PM To: Jakarta Commons Users List Subject: RE: [betwixt] NullPointerException in 0.7RC1 On Mon, 2005-06-27 at 10:13

Transaction API, ReadWriteLock

2005-07-05 Thread LeRoy . Yanta
I'm trying to use the ReadWriteLock class to acquire a write lock on a file in a servlet. When I generate multiple threads of the servlet using a WTE 5.1 server in the WSAD 5.1 IDE, I'm not able to get ReadWriteLock to block other servlet threads after the first servlet thread obtains the

RE: [betwixt] NullPointerException in 0.7RC1

2005-07-05 Thread robert burrell donkin
great thanks - robert On Tue, 2005-07-05 at 11:11 -0500, Glenn Goldenberg wrote: i tried the test out on RC2 and it still looks good... glenn -Original Message- From: robert burrell donkin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 3:43 PM To: Jakarta Commons

Re: [DBUtils] BeanHandler has problem retrieving Dates ?

2005-07-05 Thread David Graham
It doesn't need to specifically check for Date because the first thing the method does is an instanceof check. So, if your bean property is a java.util.Date and the JDBC driver returns a java.sql.Date or java.sql.Timestamp the property should get set. David --- Henry Voyer [EMAIL PROTECTED]

Expressions, Collections, Filtering oh my..

2005-07-05 Thread Poppe, Troy
I've got a collection of a JavaBeans, it could be a plain-old-Java collection or a Commons-Collection... Not really a concern... I'm trying to find a way to provide the ability to write a JEXL-like expression that would be applied against the collection of JavaBeans, and be able to retrieve all

RE: Expressions, Collections, Filtering oh my..

2005-07-05 Thread Bernard, Shawn
JXPath allows you to write XPath expressions and run them against a Collection. -Shawn -Original Message- From: Poppe, Troy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 05, 2005 4:02 PM To: 'commons-user@jakarta.apache.org' Subject: Expressions, Collections, Filtering oh my.. I've

Re: Expressions, Collections, Filtering oh my..

2005-07-05 Thread Stephen Colebourne
Poppe, Troy wrote: I've got a collection of a JavaBeans, it could be a plain-old-Java collection or a Commons-Collection... Not really a concern... I'm trying to find a way to provide the ability to write a JEXL-like expression that would be applied against the collection of JavaBeans, and be

[DBUtils] QueryRunner.fillStatement is not static

2005-07-05 Thread Elifarley
The method 'QueryRunner.fillStatement' is not static even though no instance state is referenced. Could it be officially changed into a static method ? (I need to use this functionality but I don't want to instantiate this class just to use this method). Regards, Elifarley

[Net] SocketException - Connection reset

2005-07-05 Thread David Leangen
Hello! I keep coming across this problem when using FTP. I am able to successfully retrieve a file from a remote server in passive mode, but afterwards, when I try to logout, I get an IOError caused by a SocketException: Connection reset. There are several ways to work around this problem, but

[digester] Digester pinning objects in memory

2005-07-05 Thread Matt Goodwin
I am using commons-digester for creating some objects from some xml files. When I look at this with JProbe Digester (and some other internal stuff are still referencing the object that is parsed. The code is as follows, any help would be greatly appreciated: Digester digester =

[CLI] two different versions of commons-cli-1.0.jar?

2005-07-05 Thread Hansine Jensen
When you download from http://jakarta.apache.org/site/downloads/downloads_commons-cli.cgi you get cli-1.0.zip which is the original distribution from November 2002 containing commons-cli-1.0.jar corresponding to http://svn.apache.org/repos/asf/jakarta/commons/proper/cli/tags/CLI_1_0/ But if you

Re: [digester] Digester pinning objects in memory

2005-07-05 Thread Simon Kitching
On Tue, 2005-07-05 at 16:48 -0500, Matt Goodwin wrote: I am using commons-digester for creating some objects from some xml files. When I look at this with JProbe Digester (and some other internal stuff are still referencing the object that is parsed. The code is as follows, any help would

Re: Expressions, Collections, Filtering oh my..

2005-07-05 Thread Tim O'Brien
Here are two ways to do this, JXPath is easier as you won't have to write your own Predicate. Say you have a collection of Person objects that you created with this code: Person person1 = new Person(); person1.setName( Bill ); person1.setAge( 12 ); Person person2 =

Re: [CLI] two different versions of commons-cli-1.0.jar?

2005-07-05 Thread Simon Kitching
On Tue, 2005-07-05 at 23:43 +0200, Hansine Jensen wrote: When you download from http://jakarta.apache.org/site/downloads/downloads_commons-cli.cgi you get cli-1.0.zip which is the original distribution from November 2002 containing commons-cli-1.0.jar corresponding to