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
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.
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 :
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
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
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
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,
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
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'
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.
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
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
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
13 matches
Mail list logo