[jboss-dev-forums] [Design of POJO Server] - jboss.xml service-ref

scott.stark@jboss.org do-not-reply at jboss.com
Tue Oct 23 12:56:09 EDT 2007


We are not using the full jboss overriden service-ref in the jboss_5_0.xsd. The jndiEnvironmentRefsGroup is referring to a remapped javaee:service-refGroup:


  |    <xsd:group name="jndiEnvironmentRefsGroup">
  |       <xsd:sequence>
  | ...
  |          <xsd:group ref="jboss:service-refGroup" />
  | ...
  |       </xsd:sequence>
  |    </xsd:group>
  | 
  |    <!-- Bring service-refGroup into jboss namespace from javaee_web_services_client_1_2 -->
  |    <xsd:group name="service-refGroup">
  |       <xsd:sequence>
  |          <xsd:element name="service-ref" type="javaee:service-refType"
  |             minOccurs="0" maxOccurs="unbounded">
  |             <xsd:key name="service-ref_handler-name-key">
  |                <xsd:selector xpath="javaee:handler" />
  |                <xsd:field xpath="javaee:handler-name" />
  |             </xsd:key>
  |          </xsd:element>
  |       </xsd:sequence>
  |    </xsd:group>
  | 
  | ...
  | 

Some beans are referring to the javaee:service-refType:

  |    <xsd:complexType name="message-driven-beanType">
  |       <xsd:sequence>
  |          <xsd:group ref="javaee:descriptionGroup"/>
  |          <xsd:element name="ejb-name" type="javaee:ejb-nameType"/>
  | ...
  |          <xsd:element name="service-ref" type="javaee:service-refType" minOccurs="0"
  |                       maxOccurs="unbounded"/>
  | 

while the full jboss-service-refType type is unused: 

  |    <xsd:complexType name="jboss-service-refType">
  |       <xsd:sequence>
  |          <xsd:element name="service-ref-name" type="xsd:string"/>
  |          <xsd:element name="service-impl-class" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="service-qname" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="config-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="config-file" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="handler-chain" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="port-component-ref" type="jboss:port-component-ref-type" minOccurs="0" maxOccurs="unbounded"/>
  |          <xsd:element name="wsdl-override" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |       </xsd:sequence>
  |       <xsd:attribute name="id" type="xsd:ID"/>
  |    </xsd:complexType>
  | 
  |    <xsd:complexType name="port-component-ref-type">
  |       <xsd:sequence>
  |          <xsd:element name="service-endpoint-interface" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="port-qname" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="config-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="config-file" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="stub-property" type="jboss:stub-property-type" minOccurs="0" maxOccurs="unbounded"/>
  |       </xsd:sequence>
  |    </xsd:complexType>
  | 
  |    <xsd:complexType name="stub-property-type">
  |       <xsd:sequence>
  |          <xsd:element name="prop-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |          <xsd:element name="prop-value" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  |       </xsd:sequence>
  |    </xsd:complexType>
  | 

All of the service-refs need to be of type jboss-service-refType, and we need to add a JBossServiceReferencesMetaData extension. The associated jira issue I'm working on is:
http://jira.jboss.com/jira/browse/JBAS-4895


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

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



More information about the jboss-dev-forums mailing list