commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borut BolĨina <>
Subject [configuration] dbconfiguration
Date Wed, 19 Apr 2006 18:30:37 GMT

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 use

    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:

View raw message