[jboss-dev-forums] [Design of POJO Server] - duplicate jndi-name in jboss_5_0.xsd
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Oct 23 13:17:17 EDT 2007
There is a conflict in the current use of the jndi-name from ejb-local-refType and ejb-refTypes because they define both a jndi-name element, and refer to the jboss:resourceGroup:
| <xsd:complexType name="ejb-local-refType">
| <xsd:sequence>
| <xsd:element name="description" type="javaee:descriptionType" minOccurs="0"
| maxOccurs="unbounded"/>
| <xsd:element name="ejb-ref-name" type="javaee:ejb-ref-nameType" minOccurs="0"/>
| ...
| <xsd:group ref="jboss:resourceGroup"/>
| <xsd:element name="jndi-name" type="javaee:jndi-nameType" minOccurs="0"/>
| </xsd:sequence>
|
| ...
| <!-- Bring resourceGroup into jboss namespace -->
| <xsd:group name="resourceGroup">
| <xsd:sequence>
| <!-- In jboss xml we allow the use of jndi-name instead of mapped-name -->
| <xsd:choice>
| <xsd:element name="jndi-name" type="javaee:jndi-nameType"
| minOccurs="0" />
| <xsd:element name="mapped-name" type="javaee:xsdStringType"
| minOccurs="0" />
| </xsd:choice>
|
It looks like the jndi-name should just be dropped and just the jboss:resourceGroup used.
By the way, I use the http://www.oxygenxml.com/ plugin for eclipse that allows for validation and navigation of schemas very easily within the project if your looking for a good xml/xsd tool.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097992#4097992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097992
More information about the jboss-dev-forums
mailing list