Re: [cli] simple Java problem - please, help

2009-02-23 Thread Jörg Schaible
Hi Alex, Alexander Fooks wrote at Montag, 23. Februar 2009 09:48: Hello, All, My application received parameters from the Java command line. Well, first of all you should always prepend the subject of a message posted to this list with the commons module you're talking about. Otherwise

Re: commons.cli and repeating option values

2009-02-23 Thread Russel Winder
Ed, Can you say which version of Commons CLI you are using. The problem here is I suspect that you are trying to work in the area where Commons CLI 1.0 behaves one way, Commons CLI 1.1 behaves a different way with irritating bugs and Commons CLI 1.2 is the one you need (but isn't released yet).

Re: JXPath over Generic Collection?, How?

2009-02-23 Thread Andrew Hughes
OK, email #19 to the list. I'm both incredibly patient and skeptical that this will ever work. I might try and run this in a debugger and track down how JXPath traverses the DynaBean but given the reflection involved that might be a painful task. --AH On Tue, Feb 17, 2009 at 1:11 PM, Andrew

RE: Re: [cli] simple Java problem - please, help

2009-02-23 Thread Alexander Fooks
Hi, Jörg, It's really works! You are right. Many, many thanks for your help! BR Alex Fooks -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of J?rg Schaible Sent: Monday, February 23, 2009 11:58 AM To: user@commons.apache.org Subject: Re: [cli] simple Java problem -

Re: simple Java problem - please, help

2009-02-23 Thread mickeydog
Could it be an issue of case sensitivity? Alexander Fooks wrote: Hello, All, My application received parameters from the Java command line. Some of parameter names have spaces inside. In W2K I use quotation marks and it works. In Linux (Red Hat) the same command line doesn't work:

RE: simple Java problem - please, help

2009-02-23 Thread Alexander Fooks
Yes. I already have the solution. BR Alex Fooks -Original Message- From: mickeydog [mailto:mickey...@taosnet.com] Sent: Monday, February 23, 2009 3:18 PM To: Commons Users List Subject: Re: simple Java problem - please, help Could it be an issue of case sensitivity? Alexander Fooks

Re: [beanutils] converting HTTP params into an arbitrary object model

2009-02-23 Thread Matt Benson
--- On Sat, 2/21/09, Adam Hardy ahardy.str...@cyberspaceroad.com wrote: From: Adam Hardy ahardy.str...@cyberspaceroad.com Subject: [beanutils] converting HTTP params into an arbitrary object model To: user@commons.apache.org Date: Saturday, February 21, 2009, 2:04 PM I have spent a day

[DBCP] re-establish severed connections

2009-02-23 Thread John Cartwright
Hello All, We've recently installed a firewall that terminates connections that have not had any traffic for 30 minutes. This has caused problems with our connection-pooled webapps in tomcat, since the connections in the pool get severed. I added a validation query, but it seems like the

Making BeanUtils.populate() fail on parse error?

2009-02-23 Thread Jason Cipriani
Currently I am using BeanUtils.populate() to fill a bean with values from a map (specifically, with values from the parameter map of an HttpServletRequest). However, I noticed that when there is a parse error for a field, populate() sets some default value rather than failing. E.g. if there is a

Re: [DBCP] re-establish severed connections

2009-02-23 Thread John Cartwright
I've added the following to the configuration: testWhileIdle=true timeBetweenEvictionRunsMillis=30 minEvictableIdleTimeMillis=60 with the intention that any idle connections would be evicted and closed normally before the firewall terminated them. Does specifying these enable the

RE: [DBCP] re-establish severed connections

2009-02-23 Thread Wes Clark
testWhileIdle=true, timeBetweenEvictionRunsMillis=5000, numTestsPerEvictionRun=5, ... This will cause the idle object evictor thread to wake up every five second, and test 5 threads with the validation query. We use this in our application because we were having dead threads being given to the

Re: JXPath over Generic Collection?, How?

2009-02-23 Thread Matt Benson
Andrew, I've been meaning to look into this but haven't yet. If you have any ready-to-run code you can send to the list, that wouldn't hurt... -Matt --- On Mon, 2/23/09, Andrew Hughes ahhug...@gmail.com wrote: From: Andrew Hughes ahhug...@gmail.com Subject: Re: JXPath over Generic

[dbutils] Basic CRUD Operations

2009-02-23 Thread Mark Fortner
I was wondering if DBUtils contains any methods for dealing with basic CRUD operations? The operations that I'm looking for include: ResultSet deleteByIds(Connection conn, String tableName, String[] ids); ResultSet get(Connection conn, String tableName, String[] ids); void updateRow(Connection

Re: JXPath over Generic Collection?, How?

2009-02-23 Thread Matt Benson
And the answer is: In JXPath, a decision was made to overload the name attribute to refer to an element's property name WRT its parent. The reason this was done was to support query maps with non-String keys in JXPath. This means that anytime you actually want to refer to a property whose

Re: [DBCP] re-establish severed connections

2009-02-23 Thread John Cartwright
Mark Thomas wrote: The validation query on its own does nothing. Have you tried setting testOnBorrow=true ? That may be sufficient if you can live with a slight delay if a broken connection needs to be refreshed. Mark Thanks Mark, I have the testWhileIdle=true which I understood would run

[DBCP] performance and scalability enhancements

2009-02-23 Thread Todd Carmichael
Our site is using DBCP in several different applications. Our site has high scalability requirements and some areas of DBCP and Pooling have needed tuning in order to scale. I am soliciting feedback on these changes. If the projects DBCP/POOL would/could make use of these changes and to

RE: [DBCP] performance and scalability enhancements

2009-02-23 Thread Wes Clark
We've overridden certain parts of DBCP. We don't run testOnBorrow at all for performance reasons because we return the connection to the pool if all we're doing is a SELECT, and only keep the connection if we are planning on doing updates. If during a rollback, if we catch an exception, we

Re: JXPath over Generic Collection?, How?

2009-02-23 Thread Matt Benson
I won't get to look at this again at least before tomorrow (9PM for me now and still have some late-night $work to look at), but I thought I would mention straight off that the @name feature actually IS mentioned in the userguide under the section about working with (java.util.)Maps. If you