[jboss-as7-dev] AS7 : Discrepency (schema vs model)
Vimal Kansal
vkansal at redhat.com
Tue Nov 1 21:43:13 EDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20111102/9af96930/attachment.html
More information about the jboss-as7-dev
mailing list