|
Red Squirrel Reflections
Dave Hoover explores the psychology of software development
|
[Previous entry: "Acceptance"] [Main Index] [Next entry: "Spiders on the John Hancock"]
Prevayler in XML
Monday, July 28, 2003
One of the aspects of Prevayler that sent up red flags for me was that it stores data in binary format. I downloaded JSX and changed 4 lines in Prevayler, and voila! Human readable data! I can shut down the prevayler system, modify the XML data, restart it again, and my change appears.
I ran the test that comes bundled with Prevayler and it failed after I made the change, so I need to look into that a bit further. But it looks like thus far, XML serialization is working fine with Diary.
Update: I ended up reverting to Java's native serialization after things kept getting screwed up. I think it was quotes within quotes...
Replies: 1 Comment
I have this working using java.beans.XMLEncoder. It requires making your command objects (and your system) into java beans, but in return they no longer have to be serializable, and they are much more resistant to schema change. Let me know if you are interested.
Posted by Chris Weiss on 09/08/2003
Powered by Greymatter