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

emuckenhuber do-not-reply at jboss.com
Fri Nov 21 12:22:39 EST 2008


"scott.stark at jboss.org" wrote : 
  | I'm not really following. You have the marshalled form of the ManagedObject and build it back up, to apply to the deployment attachment or are you talking about something else?
  | 

Basically what i meant is that if we do something like:


  | ManagedObject mo = managedObjectFactory.createManagedObject(SomeClass.class, null);
  | ManagedProperty p = result.getProperty("objectName");
  | p.setValue(SimpleValueSupport.wrap("jboss:service=Hypersonic,database=profileserviceTestDB"));
  | 
  | SomeClass object = mo.getAttachment();
  | 

So if SomeClass is properly annotated and we persist actually everything needed, we could use this as predetermined attachment;
as those changes are already updated in the metadata model through the WritethroughManagedPropertyImpl.

If we want to just update the delta then the ManagedComponent from the ManagementView should actually only contain the changed values.
We then would need to merge those changes with the xml (if it already contains some previous values), and apply this during deployment to the metadata itself.



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

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



More information about the jboss-dev-forums mailing list