-
1. Re: jboss_5_0.xsd: jboss version attribute
aloubyansky Jan 6, 2009 9:39 AM (in response to aloubyansky)Ok, I should have read the comments in the XSD before posting, it's actually the EJB spec.
Are you sure the value should be fixed here? -
2. Re: jboss_5_0.xsd: jboss version attribute
wolfc Jan 6, 2009 4:15 PM (in response to aloubyansky)For now only fix stuff that is causing tests to fail. Make a Jira to fix it properly after we have a fully working testsuite.
-
3. Re: jboss_5_0.xsd: jboss version attribute
aloubyansky Jan 6, 2009 6:02 PM (in response to aloubyansky)Ok, let's revisit version attribute again. In jboss_5_0.xsd it is documented as the ejb spec version. But in case of DTD, it's the DTD version (from JBossMetaData):
/** * Callback for the DTD information */ @XmlTransient public void setDTD(String root, String publicId, String systemId) { this.dtdPublicId = publicId; this.dtdSystemId = systemId; // Set the version based on the public id if (dtdPublicId != null && dtdPublicId.contains("3.0")) setVersion("3.0"); if (dtdPublicId != null && dtdPublicId.contains("3.2")) setVersion("3.2"); if (dtdPublicId != null && dtdPublicId.contains("4.0")) setVersion("4.0"); if (dtdPublicId != null && dtdPublicId.contains("4.2")) setVersion("4.2"); if (dtdPublicId != null && dtdPublicId.contains("5.0")) setVersion("5.0"); }
In addition to version property, JBossMetaData has ejbVersion property, which is transient though and is set only by JBoss50Creator:protected JBoss50MetaData create() { JBoss50MetaData metaData = new JBoss50MetaData(); metaData.setVersion("3.0"); metaData.setEjbVersion("3.0"); return metaData; }
So, what the version attribute should indicate after all?
What if we follow the DTD logic for version and if necessary bind ejbVersion to an attribute (ejb-version) instead? -
4. Re: jboss_5_0.xsd: jboss version attribute
aloubyansky Jan 29, 2009 8:57 AM (in response to aloubyansky)Coming back to this issue. I am going to make the JBossMetaData.getVersion() return the version of the schema, not the EJB version. There is an attribute (@XmlTransient) ejbVersion which returns the EJB spec version. It is currently set during EjbJar and JBoss metadata merge and in JBoss50Creator. If there needs to be a schema element or attribute to specify the EJB spec version in the JBoss descriptor or annotation then please open a Jira issue. Thanks.
-
5. Re: jboss_5_0.xsd: jboss version attribute
wolfc Jan 29, 2009 9:42 AM (in response to aloubyansky)I don't get that last bit. getEjbVersion() is returning the EJB spec version, right?
Then that should be reflected in the xsd.
I agree that version should be controlled by jboss-metadata. I'm not so sure whether it should reflect the AS version though, because we're going to use the same thing in Embedded and Reloaded. -
6. Re: jboss_5_0.xsd: jboss version attribute
aloubyansky Jan 30, 2009 2:53 AM (in response to aloubyansky)getEjbVersion() returns the EJB spec version - right. But there is no xsd component in jboss schema for it. The value is set to the EJB version from the ejb-jar.xml and/or JBoss50Creator (at the initialization).
Version attribute reflects not the AS version but the schema version of the deployment descriptor. Although, I don't see where it is actually used. -
7. Re: jboss_5_0.xsd: jboss version attribute
wolfgangknauf Mar 10, 2009 4:00 PM (in response to aloubyansky)Any news on this? 5.0.1GA still contains the broken jboss_5.0.xsd.
See also https://jira.jboss.org/jira/browse/JBAS-6426
Thanks
Wolfgang -
8. Re: jboss_5_0.xsd: jboss version attribute
wolfgangknauf May 13, 2009 4:01 PM (in response to aloubyansky)This change was not published to http://www.jboss.org/j2ee/schema up to now, and it is not in JBoss 5.1.0CR1. Will this be handled soon?
See also https://jira.jboss.org/jira/browse/JBMETA-200 for some more problems in jboss_5_1.xsd
Wolfgang