commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: [configuration] dbconfiguration
Date Fri, 21 Apr 2006 12:12:47 GMT
I don't know the code in DatabaseConfiguration too well because I was
not involved in this class. What problems do you have when you call
other methods like getString(), getInt() etc.? Is an exception thrown?


-----Original Message-----
Date: Wed, 19 Apr 2006 20:30:37 +0200
Subject: [configuration] dbconfiguration
From: Borut Bol?ina 
To: Jakarta Commons Users List 


an experimental question I have. Suppose I use database to store 
configuration key and values. The database table has two columns:

value = BLOB

The value is XML serialized from POJO with XStream. I can easily write 
to databse with

    dbconfig.setProperty(someKeyAsString, someValueAsString)

How do I get someValueAsString back from database? It seems I can only

    Object someValueAsObject = dbconfig.getProperty(someKeyAsString):

But I need String, Reader or InputStream to serialize someValue back to 


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message