"scott.stark(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...