[jboss-dev-forums] [Design of JCA on JBoss] - Re: jaxb whitepsace handling

adrian@jboss.org do-not-reply at jboss.com
Thu Jul 12 10:01:32 EDT 2007


The example you post is NOT valid, your missing the 
managed-connection-factory-class element.

Have you enabled validation on the parser? 

You'll need it if you want whitespace collpasing  by the parser
because its gots to read the schema to find out the datatype. 

e.g. in your case it should be 

  | <connection-definition>
  | <managed-connection-factory-class>
  | org.jboss.resource.adapter.jms.JmsConnectionFactory
  | </managed-connection-factory-class>
  | </connection-definition>
  | 

managed-connection-factory-class is a j2ee:fully-qualified-classType
which is a j2ee:string which is a token. 

See javaee.xsd

  |   <xsd:complexType name="string">
  |     <xsd:annotation>
  |       <xsd:documentation>
  | 
  | 	This is a special string datatype that is defined by Java EE as
  | 	a base type for defining collapsed strings. When schemas
  | 	require trailing/leading space elimination as well as
  | 	collapsing the existing whitespace, this base type may be
  | 	used.
  | 
  |       </xsd:documentation>
  |     </xsd:annotation>
  |     <xsd:simpleContent>
  |       <xsd:extension base="xsd:token">
  | 	<xsd:attribute name="id" type="xsd:ID"/>
  |       </xsd:extension>
  |     </xsd:simpleContent>
  |   </xsd:complexType>
  | 

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

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



More information about the jboss-dev-forums mailing list