[JBoss XML Binding Development] - Re: How to retrieve the value of a
by epbernard
"alex.loubyansky(a)jboss.com" wrote : Use controls presence. If use="required" the attribute must appear in the XML.
| Fixed is a value constraint. If the attribute is present and different from the fixed value the parsing will fail.
|
You sure? My schema parsing is failing when I add unexpected elements (blah) but they pass if I don't set version.
Even worse, if I set version, then it fails
Caused by: org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 'version' is not allowed to appear in element 'persistence-unit'
anonymous wrote :
| All this stuff is handled by the underlying xml parser, which is xerces SAX in our case. Xerces will include fixed and default attributes into org.xml.sax.Attributes only if schema validation is enabled.
|
| In XB you can do that by unmarshaller.setSchemaValidation(true);
It's for JBoss Metadata's JPA parsing. Do you know the piece of code that set the unmarshaller?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261878#4261878
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261878
16 years, 2 months
[Management Development] - Re: management domain model
by emuckenhuber
Another item which might be important to mention is the differences in building managedObjects. Whereas most spec deployment descriptor (ejbs, wars) mostly represent the desired management view already (excl. metrics). This is different for jboss-beans.xml and -service.xml which are more assembly descriptors than something directly usable for management.
In AS5 we are already applying some changes based on the managedObject view to the actual deployment descriptor which is quite tricky, as the actual injected value might differ from the deployment descriptor - especially for more complex values - like we had for the ServiceBindingManager. Also those changes would need to get applied earlier not after classloading to support something like offline-edits.
I'll start with some changes in jboss-man, which we should do regardless of the additional requirements for the domain model. Basically starting with separating the population with the building of ManagedObjects. This should be a separate step, maybe even built on a different managedObject metadata/structure.
This description represents a model for the managedObject itself and should be reusable for the same type of components - only that the values are going to be different.
The deployers integration could also be improved, to something a bit more explicit where we don't process the same meta data several times. I also want to move some Component processing (currently done in the ManagementView) more in this model building. Maybe the only thing the ManagementView should do is to create some composite ManagedObjects - containing more managedObjects which cannot be grouped during this building process.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261854#4261854
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261854
16 years, 2 months