[DBCP] Force active connections closed in BasicDataSource

2005-01-28 Thread Meyer, Megan K.
Hello, I'm using a BasicDataSource for connection pooling to our database in a standalone application. The application requires that we have a backup and restore capability at runtime. We've found that calling close() on the BasicDataSource doesn't cleanly close all connections to the database

Re: [DBCP] Force active connections closed in BasicDataSource

2005-01-28 Thread haipeng du
destroy your datasource. On Fri, 28 Jan 2005 10:06:38 -0500, Meyer, Megan K. [EMAIL PROTECTED] wrote: Hello, I'm using a BasicDataSource for connection pooling to our database in a standalone application. The application requires that we have a backup and restore capability at runtime.

[betwixt - dom4j] How to get a dom4j XML element from BeanWriter

2005-01-28 Thread Marc DEXET
Hello guys I would to get a dom4j xmlElement from a BeanWriter. A use SAXBeanWriter and dom4j SAXContenetHandler but I get a strange result : person id=1 Paulname/ 22age/ /person instead of person namePaul/name age22/age /person Have somebody an idea ? Source :

RE: [DBCP] Force active connections closed in BasicDataSource

2005-01-28 Thread Meyer, Megan K.
We don't want to rely on the garbage collector to close our connections. We want to explicitly close them ourselves. Is there a method to explicitly close all the connections in the data source's pool? -Original Message- From: haipeng du [mailto:[EMAIL PROTECTED] Sent: Friday, January

RE: [betwixt - dom4j] How to get a dom4j XML element from BeanWriter

2005-01-28 Thread Marc Esher \(4-2060\)
What if you change this: beanWriter.setWriteIDs(true); To this: beanWriter.setWriteIDs(false); -Original Message- From: Marc DEXET [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 10:34 AM To: 'Jakarta Commons Users List' Subject: [betwixt - dom4j] How to get a dom4j XML

RE : [betwixt - dom4j] How to get a dom4j XML element from BeanWr iter

2005-01-28 Thread Marc DEXET
Thank for all folks, I get the answer ! You have to use org.dom4j.io.SAXContentHandler.SAXContentHandler( org.dom4j.dom.DOMDocumentFactory ) constructor; Marc DEXET wrote: Hello guys I would to get a dom4j xmlElement from a BeanWriter. A use SAXBeanWriter and dom4j SAXContenetHandler but I

RE : RE : [betwixt - dom4j] How to get a dom4j XML element from B eanWr iter

2005-01-28 Thread Marc DEXET
Now I get a new problem : If I set : beanWriter.getXMLIntrospector().setAttributesForPrimitives(true); I haven't element ( i.e. is null !) I quote back the source : - public static void main(String[] strings) throws IOException, SAXException,

[digester] How to set a LazyDynaBean map-of-objects property?

2005-01-28 Thread Wendy Smoak
I'm trying to set a mapped property of a LazyDynaBean. This is easy enough if the Map is String/String, but I'm having trouble populating a Map where the values are objects. Example XML: downloadpersondegree key=1123*12332 type=BS major=Computer Science //person/download Assuming a

[betwixt] object-string conversion .betwixt file

2005-01-28 Thread Matt Goodwin
I have been able to be able to write out a bean with a date to a format other than the default by specifying an options parameter and doing a quick hack to the betwixt source. Here is the .betwixt file. ?xml version='1.0' ? info element name='ActivitySummary' element name='CommissionsYTD'

Re: [maven-xmlunit] loader constraints violated when linking org/w3c/dom/Document class

2005-01-28 Thread marc lan
I get my answer, and I put ithere to remerber with archives :) in project.properties, add : -- maven.junit.fork=true maven.compile.fork=true -- to fork to distinct JVM. Marc DeXeT marc lan wrote: I get a strange error when I run a unit test.

Re: [digester] How to set a LazyDynaBean map-of-objects property?

2005-01-28 Thread Kishore Senji
On Fri, 28 Jan 2005 11:58:35 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: I'm trying to set a mapped property of a LazyDynaBean. This is easy enough if the Map is String/String, but I'm having trouble populating a Map where the values are objects. Example XML: downloadpersondegree

Re: [digester] How to set a LazyDynaBean map-of-objects property?

2005-01-28 Thread Wendy Smoak
From: Kishore Senji [EMAIL PROTECTED] digester.addRule(/download/person/degree, rule); shouldn't the pattern be download/person/degree without the / in the beginning. Thank you! All that time wasted, for _one_ extra character... Note 1 or -1 should both resolve in this case to the

Re: [digester] How to set a LazyDynaBean map-of-objects property?

2005-01-28 Thread Kishore Senji
On Fri, 28 Jan 2005 18:20:55 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: From: Kishore Senji [EMAIL PROTECTED] digester.addRule(/download/person/degree, rule); shouldn't the pattern be download/person/degree without the / in the beginning. Thank you! All that time wasted, for