Nicolas and I adapted OpenWFE’s old XmlBeanCoder to JCR repositories (their most known implementation being Jackrabbit).
We’ve just wrote some documentation about that code.
Just a simple way of getting simple java beans in and out of JCRs; it’s useful for workflow workitems but also for anything that can be represented as a bean and has to be stored in a JCR.
The JcrBeanCoder is in use within the Magnolia CMS/DMS (3.0RC3).
There’s this thread going on the Magnolia dev list.
The question is “how to store workitems within a JCR (Java Content Repository) ?”
The current implementation Magnolia uses serializes the workitem as an XML document which is placed within the JCR as a node (be indulgent with me about the names I use for those JCR concepts, they might not be exact).
…
I started writing this post, but meanwhile the perspective changed, we will adapt OpenWFE’s bean-to-xml code into some bean-to-jcr code. It will come handy for Magnolia’s workflow module and maybe for other parts of Magnolia.
Stay tuned.