[jboss-dev-forums] [Design of POJO Server] - Re: xml persistent format for attachments

adrian@jboss.org do-not-reply at jboss.com
Fri Nov 14 09:50:04 EST 2008


Sorry to interrupt your flow of conversation, but I was thinking about this last night.

Why are you trying to serialize the attachments?

Wouldn't it be more logical to serialize the ManagedObject and then recreate
the attachment from that?

I imagine its a lot easier to write a single MO <-> xml marshaller/unmarshaller
than to do the same for all metadata (especially when some of it may have
been created by thirdparties so we have no control of the actual attachment classes).

In terms of MO<->xml all you need to do is marshal the value of the fields
which are a small list of known MetaTypes/Values.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189419#4189419

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189419



More information about the jboss-dev-forums mailing list