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
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
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
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()) {
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
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);
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:
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
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
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:
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:
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:
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())
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
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(
15 matches
Mail list logo