Author: scabanovich
Date: 2009-11-09 08:43:44 -0500 (Mon, 09 Nov 2009)
New Revision: 18496
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-1253
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-11-09 12:11:00
UTC (rev 18495)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-11-09 13:43:44
UTC (rev 18496)
@@ -9,7 +9,8 @@
Export-Package: org.jboss.tools.seam.xml,
org.jboss.tools.seam.xml.components.model,
org.jboss.tools.seam.xml.components.model.handlers,
- org.jboss.tools.seam.xml.components.model.constraint
+ org.jboss.tools.seam.xml.components.model.constraint,
+ org.jboss.tools.seam.xml.ds.model
Require-Bundle: org.jboss.tools.jst.web;visibility:=reexport,
org.eclipse.ui.ide,
org.eclipse.ui.views,
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd 2009-11-09 13:43:44
UTC (rev 18496)
@@ -0,0 +1,496 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!--dtd for jboss 4.0/jca 1.5 datasource configurations (*-ds.xml), transformed
+by ConnectionFactoryTemplate.xsl
+
+DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+
+DOCTYPE connection-factories
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+
+$Id: jboss-ds_1_5.dtd 76316 2008-07-28 17:24:52Z adrian(a)jboss.org $
+-->
+
+<!--
+The datasources element is the root of the jdbc datasource configuration
+-->
+<!ELEMENT datasources (loader-repository? , (mbean | local-tx-datasource |
xa-datasource | no-tx-datasource |
+ ha-local-tx-datasource | ha-xa-datasource)*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions
+-->
+<!ELEMENT no-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-minutes? , idle-timeout-minutes?,
+validate-on-match?, new-connection-sql?, check-valid-connection-sql?,
valid-connection-checker-class-name?,
+exception-sorter-class-name?, stale-connection-checker-class-name?, track-statements?,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+transactions
+-->
+<!ELEMENT local-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class, transaction-isolation? , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-minutes?,
+validate-on-match?, idle-timeout-minutes? ,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? ,
stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc XADatasource wrapper
+-->
+<!ELEMENT xa-datasource (jndi-name , use-java-context?, track-connection-by-tx ,
xa-datasource-class ,
+xa-datasource-property* , url-property?, url-delimiter?,
url-selector-strategy-class-name?,
+isSameRM-override-value? , transaction-isolation? , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-minutes? , idle-timeout-minutes? ,
+validate-on-match?, no-tx-separate-pools? , xa-resource-timeout?, new-connection-sql? ,
check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? ,
stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The JNDI name under which the DataSource wrapper will be bound. Note that
+this name is relative to the "java:/" prefix unless use-java-context is false.
+Ex:
+<jndi-name>DefaultDS</jndi-name>
+-->
+
+<!ELEMENT jndi-name (#PCDATA)>
+
+<!-- Setting this to false will bind the DataSource into global jndi
+Ex:
+<use-java-context>false</use-java-context>
+-->
+<!ELEMENT use-java-context (#PCDATA)>
+
+<!-- The JDBC driver connection URL string
+Ex:
+<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+-->
+<!ELEMENT connection-url (#PCDATA)>
+
+<!-- The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+-->
+<!ELEMENT driver-class (#PCDATA)>
+
+<!-- Set java.sql.Connection transaction isolation level to use.
+The constants defined in the interface Connection are the possible transaction
+isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+ <transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+-->
+<!ELEMENT transaction-isolation (#PCDATA)>
+
+<!-- Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+-->
+<!ELEMENT user-name (#PCDATA)>
+
+<!-- Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+-->
+<!ELEMENT password (#PCDATA)>
+
+<!-- Indicates that app supplied parameters (such as from getConnection(user, pw))
+are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+-->
+<!ELEMENT application-managed-security EMPTY>
+
+<!-- Indicates Subject (from security domain) are used to distinguish connections in
the pool.
+The content of the security-domain is the name of the JAAS security manager that will
handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+-->
+<!ELEMENT security-domain (#PCDATA)>
+
+<!-- Indicates that either app supplied parameters (such as from
+getConnection(user, pw)) or Subject (from security domain) are used to
+distinguish connections in the pool. The content of the
+security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+
<security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+-->
+<!ELEMENT security-domain-and-application (#PCDATA)>
+
+<!-- Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+e.g.
+ <no-tx-separate-pools/>
+-->
+<!ELEMENT no-tx-separate-pools EMPTY>
+
+<!-- The min-pool-size element indicates the minimum number of connections a
+pool should hold. These are not created until a Subject is known from a
+request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+-->
+<!ELEMENT min-pool-size (#PCDATA)>
+
+<!-- The max-pool-size element indicates the maximum number of connections for a
+pool. No more than MaxSize connections will be created in each sub-pool. This
+defaults to 20.
+-->
+<!ELEMENT max-pool-size (#PCDATA)>
+
+<!-- The blocking-timeout-millis element indicates the maximum time in
+milliseconds to block while waiting for a connection before throwing an
+exception. Note that this blocks only while waiting for a permit for a
+connection, and will never throw an exception if creating a new connection
+takes an inordinately long time. The default is 30000 (30 seconds).
+-->
+<!ELEMENT blocking-timeout-millis (#PCDATA)>
+
+<!-- The idle-timeout-minutes elements indicates the maximum time in
+minutes a connection may be idle before being closed. The actual maximum time
+depends also on the IdleRemover scan time, which is 1/2 the smallest
+idle-timeout-minutes of any pool.
+-->
+<!ELEMENT idle-timeout-minutes (#PCDATA)>
+
+<!-- The validate-on-match element indicates whether or not connection level
validation should be done when a connection factory attempts to
+match a managed connection for a given set. This is typically exclusive to the use of
background validation -->
+
+<!ELEMENT validate-on-match (#PCDATA)>
+
+<!-- An element to specify that connections should be validated on a background thread
versus being validated
+ prior to use-->
+<!ELEMENT background-validation (#PCDATA)>
+
+<!-- The background-validation-minutes element specifies the amount of time, in
minutes, that background validation
+ will run. -->
+<!ELEMENT background-validation-minutes (#PCDATA)>
+
+<!-- An element to specify that all intermediate end(suspend) and
+start(resume) calls. Also, all work on one tx will go through one
+connection.
+A side effect of this (currently at least) is that a connection will only
+be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+-->
+<!ELEMENT track-connection-by-tx EMPTY>
+
+<!-- The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+
<xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+-->
+<!ELEMENT xa-datasource-class (#PCDATA)>
+
+<!-- Specify a property to assign to the XADataSource implementation class.
+Each property is identified by the name attribute and the property value is
+given by the xa-datasource-property element content. The property is mapped
+onto the XADataSource implementation by looking for a JavaBeans style
+getter method for the property name. If found, the value of the property is
+set using the JavaBeans setter with the element text translated to the true
+property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property
name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property
name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property
name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property
name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property
name="ServerName">myserver</xa-datasource-property>
+-->
+<!ELEMENT xa-datasource-property (#PCDATA)>
+
+<!-- The xa-datasource-property name attribute specifies the name of the
+XADataSource attribute the xa-datasource-property element content provides
+the value of.
+-->
+<!ATTLIST xa-datasource-property name CDATA #REQUIRED>
+
+<!-- The isSameRM-override-value element allows one to unconditionally set
+whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+true or false.
+
+Ex:
+<isSameRM-override-value>true</isSameRM-override-value>
+-->
+<!ELEMENT isSameRM-override-value (#PCDATA)>
+
+<!-- The connection-property element allows you to pass in arbitrary connection
+properties to the Driver.connect(url, props) method. Each connection-property
+specifies a string name/value pair with the property name coming from the
+name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property
name="char.encoding">UTF-8</connection-property>
+-->
+<!ELEMENT connection-property (#PCDATA)>
+
+<!-- The connection-property name attribute gives the name of the connection
+property.
+-->
+<!ATTLIST connection-property name CDATA #REQUIRED>
+
+<!-- Specify an SQL statement to execute whenever a connection is added to
+the connection pool.
+-->
+<!ELEMENT new-connection-sql (#PCDATA)>
+
+<!-- Specify an SQL statement to check validity of a pool connection. This
+may be called when managed connection is taken from pool for use.
+-->
+<!ELEMENT check-valid-connection-sql (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+a SQLException isValidConnection(Connection e) method to validate is a connection
+is valid. An exception means the connection is destroyed.
+This overrides the check-valid-connection-sql when present.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+</exception-sorter-class-name>
+-->
+<!ELEMENT valid-connection-checker-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+a boolean isExceptionFatal(SQLException e) method to validate is an exception
+should be broadcast to all javax.resource.spi.ConnectionEventListener as
+a connectionErrorOccurred message.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+</exception-sorter-class-name>
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+</exception-sorter-class-name>
+-->
+
+<!ELEMENT exception-sorter-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+a boolean isStaleConnection(SQLException e) method which if it it returns
+true will wrap the exception in an
+org.jboss.resource.adapter.jdbc.StaleConnectionException
+which is a subclass of SQLException.
+
+Ex:
+<stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+</stale-connection-checker-class-name>
+-->
+<!ELEMENT stale-connection-checker-class-name (#PCDATA)>
+
+<!-- Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+-->
+<!ELEMENT track-statements EMPTY>
+
+<!-- Whether to attempt to prefill the connection pool. Empty element denotes a false
value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+<!ELEMENT prefill (#PCDATA) >
+
+<!-- Whether fail a connection allocation on the first connection if it is invalid
(true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+<!ELEMENT use-fast-fail (#PCDATA) >
+
+<!-- The number of prepared statements per connection in an LRU cache
+-->
+<!ELEMENT prepared-statement-cache-size (#PCDATA)>
+
+<!-- whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+-->
+<!ELEMENT share-prepared-statements EMPTY>
+
+<!-- whether to set the query timeout based on the time remaining until transaction
timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+-->
+<!ELEMENT set-tx-query-timeout EMPTY>
+
+<!-- Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+-->
+<!ELEMENT query-timeout (#PCDATA)>
+
+<!-- Any configured timeout for internal locks on the resource adapter objects in
milli-seconds
+
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+-->
+<!ELEMENT use-try-lock (#PCDATA)>
+
+<!-- The depends element specifies the JMX ObjectName string of a service
+that the connection manager services depend on.
+
+ Ex:
+ <depends>jboss:service=Hypersonic</depends>
+-->
+<!ELEMENT depends (#PCDATA)>
+
+<!-- The connection-factories element is the root of the generic jca adaptor section
+-->
+<!ELEMENT connection-factories (loader-repository? , (mbean | tx-connection-factory |
no-tx-connection-factory)*)>
+
+<!-- The loader repository -->
+<!ELEMENT loader-repository ANY>
+
+<!-- Any embedded mbean -->
+<!ELEMENT mbean ANY>
+
+<!-- The tx-connection-factory element is used to configure generic resource
+adapters supporting transactions
+-->
+<!ELEMENT tx-connection-factory (jndi-name , (local-transaction | xa-transaction) ,
+track-connection-by-tx? , rar-name?, connection-definition?, config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-minutes? , idle-timeout-minutes? ,
+no-tx-separate-pools?, prefill?, use-fast-fail?, xa-resource-timeout?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The no-tx-connection-factory element is used to configure generic resource
+adapters that do not support transactions
+-->
+<!ELEMENT no-tx-connection-factory (jndi-name , rar-name?, connection-definition? ,
config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-minutes? , idle-timeout-minutes? ,
+prefill?, use-fast-fail?, metadata?, type-mapping?, depends*)>
+
+<!-- The rar deployment to associate with the connection manager mbean.
+e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+-->
+<!ELEMENT rar-name (#PCDATA)>
+
+<!-- The connection definition inside the rar deployment uniquely identified by the
+connection factory interface, e.g. javax.sql.DataSource
+-->
+
+<!ELEMENT connection-definition (#PCDATA)>
+
+<!-- Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+-->
+<!ELEMENT xa-resource-timeout (#PCDATA)>
+
+<!-- The xa-transaction element is used to mark that the tx-connection-factory
+supports XA transactions.
+-->
+<!ELEMENT xa-transaction EMPTY>
+
+<!-- The local-transaction element is used to mark that the tx-connection-factory
+supports local transactions.
+-->
+<!ELEMENT local-transaction EMPTY>
+
+<!-- The config-property specifies a mannaged connection factory property.
+-->
+<!ELEMENT config-property (#PCDATA)>
+
+<!-- The config-property name attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property name CDATA #REQUIRED>
+
+<!-- The config-property type attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property type CDATA #REQUIRED>
+
+<!-- The type mapping from conf/standardjboss.xml -->
+<!ELEMENT type-mapping (#PCDATA)>
+
+<!-- For backwards compatibility use type-mapping -->
+<!ELEMENT metadata (type-mapping)>
+
+<!--
+Use local-tx-datasource
+-->
+<!ELEMENT ha-local-tx-datasource (jndi-name, use-java-context?, connection-url,
url-delimiter,
+driver-class, transaction-isolation? , connection-property* , user-name? , password?,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements?
,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!--
+Use xa-datasource
+-->
+<!ELEMENT ha-xa-datasource (jndi-name , use-java-context?, track-connection-by-tx ,
xa-datasource-class ,
+xa-datasource-property* , url-property, url-delimiter, isSameRM-override-value? ,
transaction-isolation? ,
+user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+no-tx-separate-pools? , xa-resource-timeout? ,
+new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements?
,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+type-mapping?, depends*)>
+
+<!-- Specifies the delimeter for URLs in connection-url for ha datasources
+-->
+<!ELEMENT url-delimiter (#PCDATA)>
+
+<!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy
+-->
+<!ELEMENT url-selector-strategy-class-name (#PCDATA)>
+
+<!-- For HA XA datasource specifies the name of an xa-datasource-property that
contains a list of URLs
+-->
+<!ELEMENT url-property (#PCDATA)>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd 2009-11-09 13:43:44
UTC (rev 18496)
@@ -0,0 +1,514 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!-- DTD for the JCA 1.5 datasources and connection factory configurations (*-ds.xml)
in JBoss-5.0.x,
+ transformed by ConnectionFactoryTemplate.xsl
+
+DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+
+DOCTYPE connection-factories
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+
+$Id: jboss-ds_5_0.dtd 76316 2008-07-28 17:24:52Z adrian(a)jboss.org $
+-->
+
+<!--
+The datasources element is the root of the jdbc datasource configuration
+-->
+<!ELEMENT datasources (loader-repository? , (mbean | local-tx-datasource |
xa-datasource | no-tx-datasource |
+ ha-local-tx-datasource | ha-xa-datasource)*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions
+-->
+<!ELEMENT no-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-millis? , idle-timeout-minutes?,
+allocation-retry?, allocation-retry-wait-millis?, validate-on-match?,
new-connection-sql?, check-valid-connection-sql?, valid-connection-checker-class-name?,
+exception-sorter-class-name?, stale-connection-checker-class-name?, track-statements?,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+transactions
+-->
+<!ELEMENT local-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class, transaction-isolation? , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-millis?,
+validate-on-match?, idle-timeout-minutes? , allocation-retry?,
allocation-retry-wait-millis?,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? ,
stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc XADatasource wrapper
+-->
+<!ELEMENT xa-datasource (jndi-name , use-java-context?, track-connection-by-tx?,
interleaving?, xa-datasource-class,
+xa-datasource-property* , url-property?, url-delimiter?,
url-selector-strategy-class-name?,
+isSameRM-override-value? , transaction-isolation? , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, validate-on-match?,
no-tx-separate-pools? , xa-resource-timeout?, new-connection-sql? ,
check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? ,
stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The JNDI name under which the DataSource wrapper will be bound. Note that
+this name is relative to the "java:/" prefix unless use-java-context is false.
+Ex:
+<jndi-name>DefaultDS</jndi-name>
+-->
+
+<!ELEMENT jndi-name (#PCDATA)>
+
+<!-- Setting this to false will bind the DataSource into global jndi
+Ex:
+<use-java-context>false</use-java-context>
+-->
+<!ELEMENT use-java-context (#PCDATA)>
+
+<!-- The JDBC driver connection URL string
+Ex:
+<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+-->
+<!ELEMENT connection-url (#PCDATA)>
+
+<!-- The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+-->
+<!ELEMENT driver-class (#PCDATA)>
+
+<!-- Set java.sql.Connection transaction isolation level to use.
+The constants defined in the interface Connection are the possible transaction
+isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+ <transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+-->
+<!ELEMENT transaction-isolation (#PCDATA)>
+
+<!-- Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+-->
+<!ELEMENT user-name (#PCDATA)>
+
+<!-- Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+-->
+<!ELEMENT password (#PCDATA)>
+
+<!-- Indicates that app supplied parameters (such as from getConnection(user, pw))
+are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+-->
+<!ELEMENT application-managed-security EMPTY>
+
+<!-- Indicates Subject (from security domain) are used to distinguish connections in
the pool.
+The content of the security-domain is the name of the JAAS security manager that will
handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+-->
+<!ELEMENT security-domain (#PCDATA)>
+
+<!-- Indicates that either app supplied parameters (such as from
+getConnection(user, pw)) or Subject (from security domain) are used to
+distinguish connections in the pool. The content of the
+security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+
<security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+-->
+<!ELEMENT security-domain-and-application (#PCDATA)>
+
+<!-- Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+e.g.
+ <no-tx-separate-pools/>
+-->
+<!ELEMENT no-tx-separate-pools EMPTY>
+
+<!-- The min-pool-size element indicates the minimum number of connections a
+pool should hold. These are not created until a Subject is known from a
+request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+-->
+<!ELEMENT min-pool-size (#PCDATA)>
+
+<!-- The max-pool-size element indicates the maximum number of connections for a
+pool. No more than MaxSize connections will be created in each sub-pool. This
+defaults to 20.
+-->
+<!ELEMENT max-pool-size (#PCDATA)>
+
+<!-- The blocking-timeout-millis element indicates the maximum time in
+milliseconds to block while waiting for a connection before throwing an
+exception. Note that this blocks only while waiting for a permit for a
+connection, and will never throw an exception if creating a new connection
+takes an inordinately long time. The default is 30000 (30 seconds).
+-->
+<!ELEMENT blocking-timeout-millis (#PCDATA)>
+
+<!-- The idle-timeout-minutes elements indicates the maximum time in
+minutes a connection may be idle before being closed. The actual maximum time
+depends also on the IdleRemover scan time, which is 1/2 the smallest
+idle-timeout-minutes of any pool.
+-->
+<!ELEMENT idle-timeout-minutes (#PCDATA)>
+
+<!-- The allocation retry element indicates the number of times that allocating
+a connection should be tried before throwing an exception. The default is 0.
+-->
+<!ELEMENT allocation-retry (#PCDATA)>
+
+<!-- The allocation retry wait millis element indicates the time in
+milliseconds to wait between retrying to allocate a connection.
+The default is 5000 (5 seconds).
+-->
+<!ELEMENT allocation-retry-wait-millis (#PCDATA)>
+
+<!-- The validate-on-match element indicates whether or not connection level
validation should be done when a connection factory attempts to
+match a managed connection for a given set. This is typically exclusive to the use of
background validation -->
+
+<!ELEMENT validate-on-match (#PCDATA)>
+
+<!-- An element to specify that connections should be validated on a background thread
versus being validated
+ prior to use-->
+<!ELEMENT background-validation (#PCDATA)>
+
+<!-- The background-validation-minutes element specifies the amount of time, in
minutes, that background validation
+ will run. -->
+<!ELEMENT background-validation-minutes (#PCDATA)>
+
+<!-- An element to specify that all intermediate end(suspend) and
+start(resume) calls. Also, all work on one tx will go through one
+connection.
+A side effect of this (currently at least) is that a connection will only
+be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+DEPRECATED: this element is now deprecated (it is assumed to present by default, also see
<interleaving/>)
+-->
+<!ELEMENT track-connection-by-tx EMPTY>
+
+<!-- An element to enable interleaving for XA connection factories
+ Ex:
+ <interleaving/>
+-->
+<!ELEMENT interleaving EMPTY>
+
+<!-- The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+
<xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+-->
+<!ELEMENT xa-datasource-class (#PCDATA)>
+
+<!-- Specify a property to assign to the XADataSource implementation class.
+Each property is identified by the name attribute and the property value is
+given by the xa-datasource-property element content. The property is mapped
+onto the XADataSource implementation by looking for a JavaBeans style
+getter method for the property name. If found, the value of the property is
+set using the JavaBeans setter with the element text translated to the true
+property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property
name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property
name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property
name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property
name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property
name="ServerName">myserver</xa-datasource-property>
+-->
+<!ELEMENT xa-datasource-property (#PCDATA)>
+
+<!-- The xa-datasource-property name attribute specifies the name of the
+XADataSource attribute the xa-datasource-property element content provides
+the value of.
+-->
+<!ATTLIST xa-datasource-property name CDATA #REQUIRED>
+
+<!-- The isSameRM-override-value element allows one to unconditionally set
+whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+true or false.
+
+Ex:
+<isSameRM-override-value>true</isSameRM-override-value>
+-->
+<!ELEMENT isSameRM-override-value (#PCDATA)>
+
+<!-- The connection-property element allows you to pass in arbitrary connection
+properties to the Driver.connect(url, props) method. Each connection-property
+specifies a string name/value pair with the property name coming from the
+name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property
name="char.encoding">UTF-8</connection-property>
+-->
+<!ELEMENT connection-property (#PCDATA)>
+
+<!-- The connection-property name attribute gives the name of the connection
+property.
+-->
+<!ATTLIST connection-property name CDATA #REQUIRED>
+
+<!-- Specify an SQL statement to execute whenever a connection is added to
+the connection pool.
+-->
+
+<!ELEMENT new-connection-sql (#PCDATA)>
+
+<!-- Specify an SQL statement to check validity of a pool connection. This
+may be called when managed connection is taken from pool for use.
+-->
+<!ELEMENT check-valid-connection-sql (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+a SQLException isValidConnection(Connection e) method to validate is a connection
+is valid. An exception means the connection is destroyed.
+This overrides the check-valid-connection-sql when present.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+</exception-sorter-class-name>
+-->
+<!ELEMENT valid-connection-checker-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+a boolean isExceptionFatal(SQLException e) method to validate is an exception
+should be broadcast to all javax.resource.spi.ConnectionEventListener as
+a connectionErrorOccurred message.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+</exception-sorter-class-name>
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+</exception-sorter-class-name>
+-->
+<!ELEMENT exception-sorter-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+a boolean isStaleConnection(SQLException e) method which if it it returns
+true will wrap the exception in an
+org.jboss.resource.adapter.jdbc.StaleConnectionException
+which is a subclass of SQLException.
+
+Ex:
+<stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+</stale-connection-checker-class-name>
+-->
+<!ELEMENT stale-connection-checker-class-name (#PCDATA)>
+
+<!-- Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+-->
+<!ELEMENT track-statements EMPTY>
+
+<!-- Whether to attempt to prefill the connection pool. Empty element denotes a false
value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+<!ELEMENT prefill (#PCDATA) >
+
+<!-- Whether fail a connection allocation on the first connection if it is invalid
(true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+<!ELEMENT use-fast-fail (#PCDATA) >
+
+<!-- The number of prepared statements per connection in an LRU cache
+-->
+<!ELEMENT prepared-statement-cache-size (#PCDATA)>
+
+<!-- whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+-->
+<!ELEMENT share-prepared-statements EMPTY>
+
+<!-- whether to set the query timeout based on the time remaining until transaction
timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+-->
+<!ELEMENT set-tx-query-timeout EMPTY>
+
+<!-- Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+-->
+<!ELEMENT query-timeout (#PCDATA)>
+
+<!-- Any configured timeout for internal locks on the resource adapter objects in
milli-seconds
+
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+-->
+<!ELEMENT use-try-lock (#PCDATA)>
+
+<!-- The depends element specifies the JMX ObjectName string of a service
+that the connection manager services depend on.
+
+ Ex:
+ <depends>jboss:service=Hypersonic</depends>
+-->
+<!ELEMENT depends (#PCDATA)>
+
+<!-- The connection-factories element is the root of the generic jca adaptor section
+-->
+<!ELEMENT connection-factories (loader-repository? , (mbean | tx-connection-factory |
no-tx-connection-factory)*)>
+
+<!-- The loader repository -->
+<!ELEMENT loader-repository ANY>
+
+<!-- Any embedded mbean -->
+<!ELEMENT mbean ANY>
+
+<!-- The tx-connection-factory element is used to configure generic resource
+adapters supporting transactions
+-->
+
+<!ELEMENT tx-connection-factory (jndi-name , (local-transaction | xa-transaction) ,
+track-connection-by-tx? , rar-name?, connection-definition?, config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools?, prefill?,
use-fast-fail?, xa-resource-timeout?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The no-tx-connection-factory element is used to configure generic resource
+adapters that do not support transactions
+-->
+<!ELEMENT no-tx-connection-factory (jndi-name , rar-name?, connection-definition? ,
config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?,
background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, prefill?, use-fast-fail?, metadata?,
type-mapping?, depends*)>
+
+<!-- The rar deployment to associate with the connection manager mbean.
+e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+-->
+<!ELEMENT rar-name (#PCDATA)>
+
+<!-- The connection definition inside the rar deployment uniquely identified by the
+connection factory interface, e.g. javax.sql.DataSource
+-->
+<!ELEMENT connection-definition (#PCDATA)>
+
+<!-- Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+-->
+<!ELEMENT xa-resource-timeout (#PCDATA)>
+
+<!-- The xa-transaction element is used to mark that the tx-connection-factory
+supports XA transactions.
+-->
+<!ELEMENT xa-transaction EMPTY>
+
+<!-- The local-transaction element is used to mark that the tx-connection-factory
+supports local transactions.
+-->
+<!ELEMENT local-transaction EMPTY>
+
+<!-- The config-property specifies a mannaged connection factory property.
+-->
+<!ELEMENT config-property (#PCDATA)>
+
+<!-- The config-property name attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property name CDATA #REQUIRED>
+
+<!-- The config-property type attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property type CDATA #REQUIRED>
+
+<!-- The type mapping from conf/standardjboss.xml -->
+<!ELEMENT type-mapping (#PCDATA)>
+
+<!-- For backwards compatibility use type-mapping -->
+<!ELEMENT metadata (type-mapping)>
+
+<!--
+Use local-tx-datasource
+-->
+<!ELEMENT ha-local-tx-datasource (jndi-name, use-java-context?, connection-url,
url-delimiter,
+driver-class, transaction-isolation? , connection-property* , user-name? , password?,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools? ,
new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements?
,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!--
+Use xa-datasource
+-->
+<!ELEMENT ha-xa-datasource (jndi-name , use-java-context?, track-connection-by-tx ,
xa-datasource-class ,
+xa-datasource-property* , url-property, url-delimiter, isSameRM-override-value? ,
transaction-isolation? ,
+user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools? ,
xa-resource-timeout? ,
+new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements?
,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?,
query-timeout?, use-try-lock?,
+type-mapping?, depends*)>
+
+<!-- Specifies the delimeter for URLs in connection-url for ha datasources
+-->
+<!ELEMENT url-delimiter (#PCDATA)>
+
+<!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy
+-->
+<!ELEMENT url-selector-strategy-class-name (#PCDATA)>
+
+<!-- For HA XA datasource specifies the name of an xa-datasource-property that
contains a list of URLs
+-->
+<!ELEMENT url-property (#PCDATA)>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd 2009-11-09 13:43:44
UTC (rev 18496)
@@ -0,0 +1,1014 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ $Id: jboss-ds_5_0.xsd 87129 2009-04-10 14:04:57Z ispringer $
+-->
+<!-- The datasources element is the root of the jdbc datasource configuration -->
+<xsd:schema
xmlns="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://www.jboss.com/xml/ns/javaee"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="5.0">
+ <xsd:import
namespace="http://java.sun.com/xml/ns/javaee"
schemaLocation="javaee_5.xsd"/>
+ <xsd:include schemaLocation="jboss-common_5_1.xsd"/>
+
+ <xsd:group name="connectionPoolGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ connection pool group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="min-pool-size"
+ type="jboss:min-pool-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="max-pool-size"
+ type="jboss:max-pool-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="blocking-timeout-millis"
+ type="jboss:blocking-timeout-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="background-validation"
+ type="jboss:background-validationType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="background-validation-millis"
+ type="jboss:background-validation-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="idle-timeout-minutes"
+ type="jboss:idle-timeout-minutesType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="allocation-retry"
+ type="jboss:allocation-retryType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="allocation-retry-wait-millis"
+ type="jboss:allocation-retry-wait-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="datasourceGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ dataSource group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="new-connection-sql"
+ type="jboss:new-connection-sqlType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="check-valid-connection-sql"
+ type="jboss:check-valid-connection-sqlType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="valid-connection-checker-class-name"
+ type="jboss:valid-connection-checker-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="exception-sorter-class-name"
+ type="jboss:exception-sorter-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="stale-connection-checker-class-name"
+ type="jboss:stale-connection-checker-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="track-statements"
+ type="jboss:track-statementsType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="urlGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ URL group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="url-delimiter"
+ type="jboss:url-delimiterType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="url-selector-strategy-class-name"
+ type="jboss:url-selector-strategy-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+ <xsd:group name="userGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ user password group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="user-name"
+ type="jboss:user-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="password"
+ type="jboss:passwordType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+ <xsd:group name="additionGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ addition group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="prepared-statement-cache-size"
+ type="jboss:prepared-statement-cache-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="share-prepared-statements"
+ type="jboss:share-prepared-statementsType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="set-tx-query-timeout"
+ type="jboss:set-tx-query-timeoutType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="query-timeout"
+ type="jboss:query-timeoutType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="use-try-lock"
+ type="jboss:use-try-lockType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="connectionFactoryGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ connection factory group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="rar-name"
+ type="jboss:rar-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="connection-definition"
+ type="jboss:connection-definitionType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="config-property"
+ type="jboss:config-propertyType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="optionGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ option group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="metadata"
+ type="jboss:metadataType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="type-mapping"
+ type="jboss:type-mappingType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="depends"
+ type="jboss:dependsType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="securityGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ Security type
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="application-managed-security"
+ type="javaee:emptyType" minOccurs="0">
+ </xsd:element>
+ <xsd:element name="security-domain"
+ type="jboss:security-domainType" minOccurs="0"/>
+ <xsd:element name="security-domain-and-application"
+ type="jboss:security-domain-and-applicationType"
minOccurs="0"/>
+ </xsd:choice>
+ </xsd:group>
+
+
+ <!--
+ The tx-connection-factory element is used to configure generic resource
+ adapters supporting transactions
+ -->
+ <xsd:complexType name="tx-connection-factory">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:choice>
+ <xsd:element name="local-transaction"
+ type="javaee:emptyType"/>
+ <xsd:element name="xa-transaction"
+ type="javaee:emptyType"/>
+ </xsd:choice>
+ <xsd:element name="track-connection-by-tx"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+
+ <xsd:group ref="jboss:connectionFactoryGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0"
maxOccurs="1"/>
+
+ <xsd:element name="xa-resource-timeout"
+ type="jboss:xa-resource-timeoutType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <!--
+ The no-tx-connection-factory element is used to configure generic resource
+ adapters that do not support transactions
+ -->
+ <xsd:complexType name="no-tx-connection-factory">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:group ref="jboss:connectionFactoryGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions
-->
+ <xsd:complexType name="no-tx-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="connection-url"
+ type="jboss:connection-urlType"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="driver-class"
+ type="jboss:driver-classType"/>
+ <xsd:element name="connection-property"
+ type="jboss:connection-propertyType" minOccurs="0"
maxOccurs="unbounded"/>
+ <xsd:group ref="jboss:userGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!--
+ Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+ transactions
+ -->
+ <xsd:complexType name="local-tx-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="connection-url"
+ type="jboss:connection-urlType"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="driver-class"
+ type="jboss:driver-classType"/>
+ <xsd:element name="transaction-isolation"
+ type="jboss:transaction-isolationType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="connection-property"
+ type="jboss:connection-propertyType" minOccurs="0"
maxOccurs="unbounded"/>
+ <xsd:group ref="jboss:userGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- Specify a jca-jdbc XADatasource wrapper -->
+ <xsd:complexType name="xa-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="track-connection-by-tx"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="interleaving"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="xa-datasource-class"
+ type="jboss:xa-datasource-classType"/>
+ <xsd:element name="xa-datasource-property"
+ type="jboss:xa-datasource-propertyType" minOccurs="0"
maxOccurs="unbounded"/>
+
+ <xsd:element name="url-property"
+ type="jboss:url-propertyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="isSameRM-override-value"
+ type="jboss:isSameRM-override-valueType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="transaction-isolation"
+ type="jboss:transaction-isolationType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:userGroup"/>
+
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:element name="xa-resource-timeout"
+ type="jboss:xa-resource-timeoutType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="datasources">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="loader-repository"
+ type="jboss:loader-repositoryType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="local-tx-datasource"
type="jboss:local-tx-datasource"/>
+ <xsd:element name="xa-datasource"
type="jboss:xa-datasource"/>
+ <xsd:element name="no-tx-datasource"
type="jboss:no-tx-datasource"/>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <!-- The connection-factories element is the root of the generic jca adaptor section
-->
+ <xsd:element name="connection-factories">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="loader-repository"
+ type="jboss:loader-repositoryType" minOccurs="0"
maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="tx-connection-factory"
type="jboss:tx-connection-factory"/>
+ <xsd:element name="no-tx-connection-factory"
type="jboss:no-tx-connection-factory"/>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <!--
+ The JNDI name under which the DataSource wrapper will be bound. Note that
+ this name is relative to the "java:/" prefix unless use-java-context is
false.
+ Ex:
+ <jndi-name>DefaultDS</jndi-name>
+ -->
+ <xsd:complexType name="jndi-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Setting this to false will bind the DataSource into global jndi
+ Ex:
+ <use-java-context>false</use-java-context>
+ -->
+ <xsd:complexType name="use-java-contextType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The JDBC driver connection URL string
+ Ex:
+ <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+ -->
+ <xsd:complexType name="connection-urlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ -->
+ <xsd:complexType name="driver-classType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Set java.sql.Connection transaction isolation level to use.
+ The constants defined in the interface Connection are the possible transaction
+ isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+
<transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+ -->
+ <xsd:complexType name="transaction-isolationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string">
+ <xsd:enumeration value="TRANSACTION_READ_UNCOMMITTED"/>
+ <xsd:enumeration value="TRANSACTION_READ_COMMITTED"/>
+ <xsd:enumeration value="TRANSACTION_REPEATABLE_READ"/>
+ <xsd:enumeration value="TRANSACTION_SERIALIZABLE"/>
+ <xsd:enumeration value="TRANSACTION_NONE"/>
+ </xsd:restriction>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+ -->
+ <xsd:complexType name="user-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+ -->
+ <xsd:complexType name="passwordType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Indicates that app supplied parameters (such as from getConnection(user, pw))
+ are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+ -->
+
+ <!--
+ Indicates Subject (from security domain) are used to distinguish connections in the
pool.
+ The content of the security-domain is the name of the JAAS security manager that will
handle
+ authentication. This name correlates to the JAAS login-config.xml descriptor
+ application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+
+ <xsd:complexType name="security-domainType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ -->
+
+ <!--
+ Indicates that either app supplied parameters (such as from
+ getConnection(user, pw)) or Subject (from security domain) are used to
+ distinguish connections in the pool. The content of the
+ security-domain is the name of the JAAS security manager that will handle
+ authentication. This name correlates to the JAAS login-config.xml descriptor
+ application-policy/name attribute.
+
+ Ex:
+
<security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+ -->
+ <xsd:complexType name="security-domain-and-applicationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+ e.g.
+ <no-tx-separate-pools/>
+ -->
+
+ <!--
+ The min-pool-size element indicates the minimum number of connections a
+ pool should hold. These are not created until a Subject is known from a
+ request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+ -->
+ <xsd:complexType name="min-pool-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The max-pool-size element indicates the maximum number of connections for a
+ pool. No more than MaxSize connections will be created in each sub-pool. This
+ defaults to 20.
+ -->
+ <xsd:complexType name="max-pool-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The blocking-timeout-millis element indicates the maximum time in
+ milliseconds to block while waiting for a connection before throwing an
+ exception. Note that this blocks only while waiting for a permit for a
+ connection, and will never throw an exception if creating a new connection
+ takes an inordinately long time. The default is 30000 (30 seconds).
+ -->
+ <xsd:complexType name="blocking-timeout-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The idle-timeout-minutes element indicates the maximum time in
+ minutes a connection may be idle before being closed. The actual maximum time
+ depends also on the IdleRemover scan time, which is 1/2 the smallest
+ idle-timeout-minutes of any pool.
+ -->
+ <xsd:complexType name="idle-timeout-minutesType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The allocation retry element indicates the number of times that allocating
+ a connection should be tried before throwing an exception. The default is 0.
+ -->
+ <xsd:complexType name="allocation-retryType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The allocation retry wait millis element indicates the time in
+ milliseconds to wait between retrying to allocate a connection.
+ The default is 5000 (5 seconds).
+ -->
+ <xsd:complexType name="allocation-retry-wait-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The validate-on-match element indicates whether or not connection level validation
should be done when a connection factory attempts to
+ match a managed connection for a given set. This is typically exclusive to the use of
background validation
+ -->
+ <xsd:complexType name="validate-on-matchType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An element to specify that connections should be validated on a background thread
versus being validated
+ prior to use
+ -->
+ <xsd:complexType name="background-validationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The background-validation-millis element specifies the amount of time, in
milliseconds, that background validation
+ will run.
+ -->
+ <xsd:complexType name="background-validation-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An element to specify that all intermediate end(suspend) and
+ start(resume) calls. Also, all work on one tx will go through one
+ connection.
+ A side effect of this (currently at least) is that a connection will only
+ be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+ DEPRECATED: this element is now deprecated (it is assumed to present by default, also
see <interleaving/>)
+ -->
+
+ <!--
+ An element to enable interleaving for XA connection factories
+ Ex:
+ <interleaving/>
+ -->
+
+
+ <!--
+ The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+
<xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+ -->
+ <xsd:complexType name="xa-datasource-classType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify a property to assign to the XADataSource implementation class.
+ Each property is identified by the name attribute and the property value is
+ given by the xa-datasource-property element content. The property is mapped
+ onto the XADataSource implementation by looking for a JavaBeans style
+ getter method for the property name. If found, the value of the property is
+ set using the JavaBeans setter with the element text translated to the true
+ property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property
name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property
name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property
name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property
name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property
name="ServerName">myserver</xa-datasource-property>
+ -->
+ <xsd:complexType name="xa-datasource-propertyType"
mixed="true">
+ <xsd:attribute name="name" use="required"/>
+ </xsd:complexType>
+
+ <!--
+ The xa-datasource-property name attribute specifies the name of the
+ XADataSource attribute the xa-datasource-property element content provides
+ the value of.
+ -->
+ <!--
+ The isSameRM-override-value element allows one to unconditionally set
+ whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+ true or false.
+
+ Ex:
+ <isSameRM-override-value>true</isSameRM-override-value>
+ -->
+ <xsd:complexType name="isSameRM-override-valueType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The connection-property element allows you to pass in arbitrary connection
+ properties to the Driver.connect(url, props) method. Each connection-property
+ specifies a string name/value pair with the property name coming from the
+ name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property
name="char.encoding">UTF-8</connection-property>
+ -->
+ <xsd:complexType name="connection-propertyType"
mixed="true">
+ <xsd:attribute name="name" use="required"/>
+ </xsd:complexType>
+
+ <!--
+ The connection-property name attribute gives the name of the connection
+ property.
+ -->
+ <!--
+ Specify an SQL statement to execute whenever a connection is added to
+ the connection pool.
+ -->
+ <xsd:complexType name="new-connection-sqlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify an SQL statement to check validity of a pool connection. This
+ may be called when managed connection is taken from pool for use.
+ -->
+ <xsd:complexType name="check-valid-connection-sqlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+ a SQLException isValidConnection(Connection e) method to validate is a connection
+ is valid. An exception means the connection is destroyed.
+ This overrides the check-valid-connection-sql when present.
+
+ Ex:
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+ </exception-sorter-class-name>
+ -->
+ <xsd:complexType name="valid-connection-checker-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+ a boolean isExceptionFatal(SQLException e) method to validate is an exception
+ should be broadcast to all javax.resource.spi.ConnectionEventListener as
+ a connectionErrorOccurred message.
+
+ Ex:
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+ </exception-sorter-class-name>
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+ </exception-sorter-class-name>
+ -->
+ <xsd:complexType name="exception-sorter-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+ a boolean isStaleConnection(SQLException e) method which if it it returns
+ true will wrap the exception in an
+ org.jboss.resource.adapter.jdbc.StaleConnectionException
+ which is a subclass of SQLException.
+
+ Ex:
+ <stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+ </stale-connection-checker-class-name>
+ -->
+ <xsd:complexType name="stale-connection-checker-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+ -->
+ <xsd:complexType name="track-statementsType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to attempt to prefill the connection pool. Empty element denotes a false
value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+ <xsd:complexType name="prefillType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether fail a connection allocation on the first connection if it is invalid (true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+ <xsd:complexType name="use-fast-failType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- The number of prepared statements per connection in an LRU cache -->
+ <xsd:complexType name="prepared-statement-cache-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+ -->
+ <xsd:complexType name="share-prepared-statementsType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ whether to set the query timeout based on the time remaining until transaction
timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+ -->
+ <xsd:complexType name="set-tx-query-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+ -->
+ <xsd:complexType name="query-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Any configured timeout for internal locks on the resource adapter objects in
milli-seconds
+ restriction
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+ -->
+ <xsd:complexType name="use-try-lockType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The rar deployment to associate with the connection manager mbean.
+ e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+ -->
+ <xsd:complexType name="rar-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The connection definition inside the rar deployment uniquely identified by the
+ connection factory interface, e.g. javax.sql.DataSource
+ -->
+ <xsd:complexType name="connection-definitionType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+ -->
+ <xsd:complexType name="xa-resource-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The xa-transaction element is used to mark that the tx-connection-factory
+ supports XA transactions.
+ -->
+
+ <!--
+ The local-transaction element is used to mark that the tx-connection-factory
+ supports local transactions.
+ -->
+
+ <!-- The config-property specifies a mannaged connection factory property. -->
+ <xsd:complexType name="config-propertyType">
+ <xsd:simpleContent>
+ <xsd:extension base="javaee:string">
+ <xsd:attribute name="name" type="xsd:string"
use="required"/>
+ <xsd:attribute name="type" type="xsd:string"
use="required"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+
+ </xsd:complexType>
+
+ <!--
+ The config-property name attribute gives the name of the connection
+ factory property.
+ -->
+ <!--
+ The config-property type attribute gives the name of the connection
+ factory property.
+ -->
+ <!-- The type mapping from conf/standardjboss.xml -->
+ <xsd:complexType name="type-mappingType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- For backwards compatibility use type-mapping -->
+ <xsd:complexType name="metadataType">
+ <xsd:sequence>
+ <xsd:element name="type-mapping"
+ type="jboss:type-mappingType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+
+ <!-- Specifies the delimiter for URLs in connection-url for HA datasources -->
+ <xsd:complexType name="url-delimiterType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy
-->
+ <xsd:complexType name="url-selector-strategy-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- For HA XA datasources, specifies the name of an xa-datasource-property that
contains a list of URLs -->
+ <xsd:complexType name="url-propertyType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+</xsd:schema>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 12:11:00 UTC (rev
18495)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 13:43:44 UTC (rev
18496)
@@ -30,7 +30,14 @@
<keys path="help/keys-seam-lists.properties"/>
</extension>
+ <extension point="org.jboss.tools.common.model.meta">
+ <meta path="meta/ds.meta"/>
+ </extension>
+ <extension point="org.jboss.tools.common.model.keys">
+ <keys path="help/keys-ds.properties"/>
+ </extension>
+
<extension point="org.jboss.tools.common.model.classes">
<xclass
id="org.jboss.tools.seam.xml.components.model.FileSeamComponentsImpl"
class="org.jboss.tools.seam.xml.components.model.FileSeamComponentsImpl"/>
@@ -377,4 +384,11 @@
</catalogContribution>
</extension>
+ <extension point="org.jboss.tools.common.model.classes">
+ <xclass id="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"
+ class="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
+ <xclass id="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ class="org.jboss.tools.seam.xml.ds.model.DSFileLoader"/>
+ </extension>
+
</plugin>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties 2009-11-09
13:43:44 UTC (rev 18496)
@@ -0,0 +1,2 @@
+FileDSConnectionFactories.editorTitle=Connection Factories 1.5 Editor
+FileDSDatasources.editorTitle=Datasources 1.5 Editor
\ No newline at end of file
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta 2009-11-09 13:43:44
UTC (rev 18496)
@@ -0,0 +1,759 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
+ "meta.dtd">
+<XModelEntityGroup>
+ <VERSION DEPENDS="Model:1.0" MODULE="Seam"
VERSION="1.0"/>
+ <MAPPINGS>
+ <MAPPING name="FileVersions">
+ <PAIR name="DSConnectionFactories1.5"
value="FileDSConnectionFactories"/>
+ <PAIR name="DSConnectionFactories5.0dtd"
value="FileDSConnectionFactories50d"/>
+ <PAIR name="DSDatasources1.5" value="FileDSDatasources"/>
+ <PAIR name="DSDatasources5.0dtd"
value="FileDSDatasources50d"/>
+ </MAPPING>
+ <MAPPING name="Recognizers">
+ <PAIR name="xml$42"
value="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
+ </MAPPING>
+ </MAPPINGS>
+ <ICONS>
+ <GROUP name="action">
+ <GROUP name="new">
+ <GROUP name="ds">
+ <ICON name="case" path="images/jsf/transition.gif"/>
+ <ICON name="faces-config"
path="images/jsf/new-jsf-config.gif"/>
+ </GROUP>
+ </GROUP>
+ </GROUP>
+ <GROUP name="main">
+ <GROUP name="ds">
+ <ICON name="action-mappings"
path="images/struts/action_mappings.gif"/>
+ <ICON name="application"
path="images/jsf/web_application.gif"/>
+ <ICON name="attribute" path="images/jsf/attribute.gif"/>
+ <ICON name="bean" path="images/struts/form_bean.gif"/>
+ <ICON name="component" path="images/struts/plug_in.gif"/>
+ <ICON name="components"
path="images/struts/plug_in_folder.gif"/>
+ <ICON name="converter" path="images/jsf/convertor.gif"/>
+ <ICON name="data-source"
path="images/struts/data_source.gif"/>
+ <ICON name="event" path="images/webxml/listener.gif"/>
+ <ICON name="exception"
path="images/struts/exception.gif"/>
+ <ICON name="extension" path="images/palette/any-tag.gif"/>
+ <ICON name="facet" path="images/jsf/facet.gif"/>
+ <ICON name="factory" path="images/jsf/factory.gif"/>
+ <ICON name="file" path="images/jsf/jsf-config.gif"/>
+ <ICON name="property" path="images/java/property.gif"/>
+ <ICON name="rule" path="images/struts/action.gif"/>
+ <ICON name="rules"
path="images/struts/action_mappings.gif"/>
+ <ICON name="validator"
path="images/struts/pro/validator.gif"/>
+ <ICON name="validators"
path="images/struts/pro/validator_global.gif"/>
+ </GROUP>
+ </GROUP>
+ </ICONS>
+ <GlobalActions kind="list"/>
+ <XModelEntity ImplementingClass="%Custom%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;saveDefault=false"
+ XMLSUBPATH="loader-repository" name="DSLoaderRepository">
+ <XChildrenEntities>
+ <XChildEntity name="AnyElement"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.event" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="loader-repository"
loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Loader Repository" name="name"
visibility="false"/>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="entity=AnyElement" WizardClassName="%Default%"
+ displayName="Add Tag..." kind="action"
name="CreateTag">
+ <EntityData EntityName="AnyElementNew">
+ <AttributeData AttributeName="tag"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create"
kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list"
name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action"
name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Custom%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="mbean" name="DSMBean">
+ <XChildrenEntities>
+ <XChildEntity name="AnyElement"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.event" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mbean" loader="ElementType"
name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Loader Repository" name="_id_"/>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="entity=AnyElement" WizardClassName="%Default%"
+ displayName="Add Tag..." kind="action"
name="CreateTag">
+ <EntityData EntityName="AnyElementNew">
+ <AttributeData AttributeName="tag"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create"
kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list"
name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action"
name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="connection-factories"
name="FileDSConnectionFactories">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository"
required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="connection-factories"
loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name"
xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension"
xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload"
visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+
default="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect"
visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action"
name="Open"/>
+ <XActionItem displayName="Open With" group="1"
kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action"
name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action"
name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..."
kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+
HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..."
kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action"
name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ <XActionItem BaseActionName="Paste"
HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action"
name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+
PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action"
name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="connection-factories"
name="FileDSConnectionFactories50d">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository"
required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="connection-factories"
loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name"
xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension"
xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload"
visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+
default="http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect"
visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action"
name="Open"/>
+ <XActionItem displayName="Open With" group="1"
kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action"
name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action"
name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..."
kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+
HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..."
kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action"
name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ <XActionItem BaseActionName="Paste"
HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action"
name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+
PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action"
name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="datasources" name="FileDSDatasources">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository"
required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="datasources" loader="ElementType"
name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name"
xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension"
xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload"
visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+
default="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect"
visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action"
name="Open"/>
+ <XActionItem displayName="Open With" group="1"
kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action"
name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action"
name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..."
kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+
HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..."
kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action"
name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ <XActionItem BaseActionName="Paste"
HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action"
name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+
PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action"
name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="datasources" name="FileDSDatasources50d">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository"
required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="datasources" loader="ElementType"
name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name"
xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension"
xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload"
visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+
default="http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect"
visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action"
name="Open"/>
+ <XActionItem displayName="Open With" group="1"
kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action"
name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action"
name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..."
kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+
HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..."
kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action"
name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ <XActionItem BaseActionName="Paste"
HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action"
name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+
PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action"
name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileDSDatasources50d_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" kind="list"
name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..."
kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileDSDatasources_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" kind="list"
name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..."
kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XEntityExtension name="FileFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.newattribute" displayName="File"
group="1"
+ kind="list" name="CreateFiles">
+ <XActionItem displayName="Datasources" kind="list"
name="DS">
+ <XActionItem HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="entity=FileDSDatasources;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSDatasources"
+ displayName="Datasources File..." kind="action"
name="CreateFileDatasources">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator"
Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HIDE="always"
HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Datasources File..." kind="action"
name="CreateFileDatasourcesV"/>
+ <XActionItem HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="entity=FileDSConnectionFactories;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSConnectionFactories"
+ displayName="Connection Factories File..." kind="action"
name="CreateFileConnectionFactories">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator"
Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HIDE="always"
HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Connection Factories File..." kind="action"
name="CreateFileConnectionFactoriesV"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New"
group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.newattribute" displayName="File"
group="1"
+ kind="list" name="CreateFiles">
+ <XActionItem displayName="Datasources" kind="list"
name="DS">
+ <XActionItem HIDE="always"
HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="entity=FileDSDatasources;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSDatasources"
+ displayName="Datasources File..." kind="action"
name="CreateFileDatasources">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator"
Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Datasources File..." kind="action"
name="CreateFileDatasourcesV"/>
+ <XActionItem HIDE="always"
HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="entity=FileDSConnectionFactories;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSConnectionFactories"
+ displayName="Connection Factories File..." kind="action"
name="CreateFileConnectionFactories">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator"
Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+
PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Connection Factories File..." kind="action"
name="CreateFileConnectionFactoriesV"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemJar">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+ <XEntityExtension name="JarFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+</XModelEntityGroup>
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java 2009-11-09
13:43:44 UTC (rev 18496)
@@ -0,0 +1,17 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+public interface DSConstants {
+ public String PUBLIC_ID_1_5 = "-//JBoss//DTD JBOSS JCA Config 1.5//EN";
//$NON-NLS-1$
+ public String SYSTEM_ID_1_5 =
"http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"; //$NON-NLS-1$
+ public String PUBLIC_ID_5_0 = "-//JBoss//DTD JBOSS JCA Config 5.0//EN";
//$NON-NLS-1$
+ public String SYSTEM_ID_5_0 =
"http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"; //$NON-NLS-1$
+
+ public String ENT_DATASOURCES_FILE = "FileDSDatasources"; //$NON-NLS-1$
+ public String ENT_CONNECTION_FACTORIES_FILE = "FileDSConnectionFactories";
//$NON-NLS-1$
+
+ public String SUFF_50_DTD = "50d"; //$NON-NLS-1$
+
+ public String ENT_DATASOURCES_FILE_50_DTD = ENT_DATASOURCES_FILE + SUFF_50_DTD;
+ public String ENT_CONNECTION_FACTORIES_FILE_50_DTD = ENT_CONNECTION_FACTORIES_FILE +
SUFF_50_DTD;
+
+}
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java 2009-11-09
13:43:44 UTC (rev 18496)
@@ -0,0 +1,42 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import java.io.IOException;
+
+import org.jboss.tools.common.model.loaders.EntityRecognizer;
+import org.jboss.tools.common.xml.XMLEntityResolver;
+import org.jboss.tools.seam.xml.SeamXMLPlugin;
+
+public class DSEntityRecognizer implements EntityRecognizer, DSConstants {
+ static {
+ try {
+ Class<?> c = DSEntityRecognizer.class;
+ XMLEntityResolver.registerPublicEntity(PUBLIC_ID_1_5, c,
"/meta/jboss-ds_1_5.dtd"); //$NON-NLS-1$
+ XMLEntityResolver.registerPublicEntity(PUBLIC_ID_5_0, c,
"/meta/jboss-ds_5_0.dtd"); //$NON-NLS-1$
+ } catch (IOException e) {
+ SeamXMLPlugin.log(e);
+ }
+ }
+
+ public DSEntityRecognizer() {}
+
+ public String getEntityName(String ext, String body) {
+ if(body == null) return null;
+ if(body.indexOf(PUBLIC_ID_1_5) >= 0) {
+ if (body.indexOf("DOCTYPE datasources") >= 0) {
+ return ENT_DATASOURCES_FILE;
+ }
+ if (body.indexOf("DOCTYPE connection-factories") >= 0) {
+ return ENT_CONNECTION_FACTORIES_FILE;
+ }
+ } else if(body.indexOf(PUBLIC_ID_5_0) >= 0) {
+ if (body.indexOf("DOCTYPE datasources") >= 0) {
+ return ENT_DATASOURCES_FILE_50_DTD;
+ }
+ if (body.indexOf("DOCTYPE connection-factories") >= 0) {
+ return ENT_CONNECTION_FACTORIES_FILE_50_DTD;
+ }
+ }
+ return null;
+ }
+
+}
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java 2009-11-09
13:43:44 UTC (rev 18496)
@@ -0,0 +1,18 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import org.jboss.tools.common.model.loaders.impl.SimpleWebFileLoader;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+
+public class DSFileLoader extends SimpleWebFileLoader {
+
+ public DSFileLoader() {}
+
+ protected XModelObjectLoaderUtil createUtil() {
+ return new DSFileLoaderUtil();
+ }
+
+ protected boolean isCheckingDTD() {
+ return false;
+ }
+
+}
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java 2009-11-09
13:43:44 UTC (rev 18496)
@@ -0,0 +1,41 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+import org.w3c.dom.Element;
+
+public class DSFileLoaderUtil extends XModelObjectLoaderUtil implements DSConstants {
+
+ public DSFileLoaderUtil() {}
+
+ public boolean save(Element parent, XModelObject o) {
+ if(!needToSave(o)) return true;
+ boolean b = super.save(parent, o);
+ //TODO check dtd
+ return b;
+ }
+
+ protected boolean needToSave(XModelObject o) {
+ String s = o.getModelEntity().getProperty("saveDefault"); //$NON-NLS-1$
+ if(!"false".equals(s)) return true; //$NON-NLS-1$
+ if(hasSetAttributes(o)) return true;
+ if(o.getChildren().length > 0) return true;
+ return false;
+ }
+
+ private boolean hasSetAttributes(XModelObject o) {
+ XAttribute[] as = o.getModelEntity().getAttributes();
+ for (int i = 0; i < as.length; i++) {
+ String xml = as[i].getXMLName();
+ // it would be more safe to check isSavable
+ if(xml == null || xml.length() == 0 || "NAME".equals(xml)) continue;
//$NON-NLS-1$
+ String v = o.getAttributeValue(as[i].getName());
+ if(v != null && v.length() > 0) return true;
+ }
+ String finalComment = o.get("#final-comment"); //$NON-NLS-1$
+ if(finalComment != null && finalComment.length() > 0) return true;
+ return false;
+ }
+
+}
Property changes on:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain