[jboss-as7-dev] AS7 : Discrepency (schema vs model)

Darran Lofthouse darran.lofthouse at jboss.com
Wed Nov 2 08:12:09 EDT 2011


To add to this as we progress we will be support parsing multiple schema 
versions but there will only be one version of the domain model so the 
parsers will have the responsibility of mapping between multiple schema 
versions to a single model.

Regards,
Darran Lofthouse.


On 11/02/2011 11:11 AM, Kabir Khan wrote:
> Yes, the schema and the model have no consistency guarantees beyond that it must be possible to parse the xml into the model and marshal it back to xml.
> On 2 Nov 2011, at 04:15, Vimal Kansal wrote:
>
>> Thanks Jaikiran.
>>
>> Vimal
>>
>> On 2/11/2011 2:39 PM, Jaikiran Pai wrote:
>>> Although the xml schema elements/attributes might sometimes match with
>>> the domain model names, but I don't think it's an requirement that they
>>> should be the same. As long as the read-resource-description shows what
>>> the attribute in the domain model is meant for, I think it should be fine.
>>>
>>> -Jaikiran
>>> On Wednesday 02 November 2011 07:13 AM, Vimal Kansal wrote:
>>>> Hi,
>>>>
>>>> I found that datasource xsd defines an element like :
>>>>
>>>> <xs:element name=" *driver*" type="xs:token" minOccurs="0">
>>>> <xs:annotation>
>>>> <xs:documentation>
>>>> <![CDATA[[
>>>>                An unique reference to the classloader module which
>>>> contains the JDBC driver
>>>>                The accepted format is driverName#majorVersion.minorVersion
>>>>               ]]>
>>>> </xs:documentation>
>>>> </xs:annotation>
>>>> </xs:element>
>>>>
>>>> And the cli model defines :
>>>>
>>>> [standalone at localhost:9999
>>>> data-source=java:jboss/datasources/ExampleDS] :read-resource
>>>> {
>>>>      "outcome" =>   "success",
>>>>      "result" =>   {
>>>>          "background-validation" =>   undefined,
>>>>          "background-validation-millis" =>   undefined,
>>>>          "blocking-timeout-wait-millis" =>   undefined,
>>>>          "connection-properties" =>   undefined,
>>>>          "connection-url" =>   "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1",
>>>>          "*driver-name*" =>   "h2",
>>>>          "enabled" =>   true,
>>>>          "flush-strategy" =>   undefined,
>>>>          "idle-timeout-minutes" =>   undefined,
>>>>          "jndi-name" =>   "java:jboss/datasources/ExampleDS",
>>>>          "jta" =>   true,
>>>>          "max-pool-size" =>   2,
>>>>          "min-pool-size" =>   2,
>>>>          "password" =>   "sa",
>>>>          "pool-name" =>   "H2DS",
>>>>          "pool-prefill" =>   true,
>>>>          "pool-use-strict-min" =>   undefined,
>>>>          "set-tx-query-timeout" =>   "false",
>>>>          "share-prepared-statements" =>   "false",
>>>>          "spy" =>   false,
>>>>          "track-statements" =>   "\"NOWARN\"",
>>>>          "use-ccm" =>   true,
>>>>          "use-fast-fail" =>   "false",
>>>>          "use-java-context" =>   true,
>>>>          "user-name" =>   "sa",
>>>>          "validate-on-match" =>   "false"
>>>>      }
>>>> }
>>>>
>>>> While for most other elements, xsd element and the model attribute
>>>> match, this one (i.e driver vs driver-name) seems to be bit confusing.
>>>>
>>>> Thx
>>>>
>>>> Vimal
>>>>
>>>>
>>>> _______________________________________________
>>>> jboss-as7-dev mailing list
>>>> jboss-as7-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


More information about the jboss-as7-dev mailing list