<?xml version="1.0" encoding="UTF-8"?>

<document repository="default" id="3f8ab416-6bbc-4883-b4b0-b8579d58c883">
  <system>
    <type>NXComponent</type>
    <path>nuxeo-platform.1415371804852/Bundles/bg-grp-org-nuxeo-runtime/bundle-org-nuxeo-runtime-datasource/component-org-nuxeo-runtime-datasource</path>
    <lifecycle-state>project</lifecycle-state>
    <lifecycle-policy>default</lifecycle-policy>
    <facet>Commentable</facet>
    <facet>Versionable</facet>
    <facet>DocumentsSizeStatistics</facet>
    <facet>Thumbnail</facet>
    <facet>Folderish</facet>
    <facet>DocumentsCountStatistics</facet>
    <access-control>
      <acl name="inherited">
        <entry principal="members" permission="Write" grant="true"/>
        <entry principal="Everyone" permission="Read" grant="true"/>
        <entry principal="Administrator" permission="Everything" grant="true"/>
        <entry principal="members" permission="Read" grant="true"/>
        <entry principal="members" permission="Version" grant="true"/>
      </acl>
    </access-control>
  </system>
  <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore">
    <dc:creator><![CDATA[Administrator]]></dc:creator>
    <dc:source><![CDATA[]]></dc:source>
    <dc:nature><![CDATA[]]></dc:nature>
    <dc:contributors>
      <item><![CDATA[Administrator]]></item>
      <item><![CDATA[jcarsique]]></item>
    </dc:contributors>
    <dc:created><![CDATA[2014-11-07T15:44:15.65Z]]></dc:created>
    <dc:description><![CDATA[]]></dc:description>
    <dc:rights><![CDATA[]]></dc:rights>
    <dc:subjects/>
    <dc:publisher><![CDATA[]]></dc:publisher>
    <dc:valid/>
    <dc:format><![CDATA[]]></dc:format>
    <dc:issued/>
    <dc:modified><![CDATA[2014-11-07T15:44:15.65Z]]></dc:modified>
    <dc:language><![CDATA[]]></dc:language>
    <dc:coverage><![CDATA[]]></dc:coverage>
    <dc:expired/>
    <dc:lastContributor><![CDATA[jcarsique]]></dc:lastContributor>
    <dc:title><![CDATA[org.nuxeo.runtime.datasource]]></dc:title>
  </schema>
  <schema xmlns:dcs="http://www.nuxeo.org/dam/schemas/documentsCountStats/" name="documents_count_statistics">
    <dcs:childrenCount><![CDATA[2]]></dcs:childrenCount>
    <dcs:descendantsCount><![CDATA[2]]></dcs:descendantsCount>
  </schema>
  <schema xmlns:thumb="http://www.nuxeo.org/ecm/schemas/thumbnail" name="thumbnail">
    <thumb:thumbnail/>
  </schema>
  <schema xmlns:dss="http://www.nuxeo.org/dam/schemas/documentsSizeStats/" name="documents_size_statistics">
    <dss:maxSize><![CDATA[-1]]></dss:maxSize>
    <dss:totalSize><![CDATA[2683]]></dss:totalSize>
    <dss:sizeTrash><![CDATA[0]]></dss:sizeTrash>
    <dss:sizeVersions><![CDATA[0]]></dss:sizeVersions>
    <dss:innerSize><![CDATA[2683]]></dss:innerSize>
  </schema>
  <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common">
    <common:icon><![CDATA[/icons/file.gif]]></common:icon>
    <common:icon-expanded><![CDATA[]]></common:icon-expanded>
    <common:size><![CDATA[2683]]></common:size>
  </schema>
  <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file">
    <file:content>
      <encoding>UTF-8</encoding>
      <mime-type>text/xml</mime-type>
      <filename></filename>
      <data>c13f6540.blob</data>
      <digest>41c5f7df360bea6778414532d3c2829b</digest>
    </file:content>
    <file:filename><![CDATA[]]></file:filename>
  </schema>
  <schema xmlns:nxcomponent="http://nuxeo.org/schemas/nxcomponent" name="nxcomponent">
    <nxcomponent:componentId><![CDATA[org.nuxeo.runtime.datasource]]></nxcomponent:componentId>
    <nxcomponent:builtInDocumentation><![CDATA[
		Component use to register datasources.

		Example contribution:

		<code>
    <datasource driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
        maxActive="20" maxIdle="5" maxWait="10000" name="jdbc/foo">
        <property name="url">jdbc:derby:/home/db;create=true</property>
        <property name="username">nuxeo</property>
        <property name="password">nuxeo</property>
    </datasource>
</code>


		Or, for a XA datasource:

		<code>
    <datasource maxActive="20" maxIdle="5" maxWait="10000"
        name="jdbc/foo" xaDataSource="org.apache.derby.jdbc.EmbeddedXADataSource">
        <property name="databaseName">/home/db</property>
        <property name="createDatabase">create</property>
        <property name="user">nuxeo</property>
        <property name="password">nuxeo</property>
    </datasource>
</code>


		The allowed attributes of a
		<b>datasource</b>

		element are:
		<ul>
    <li>
        <b>name</b>
				the JNDI name (for instance
				<tt>jdbc/foo</tt>
				)
			</li>
    <li>
        <b>driverClassName</b>
				the JDBC driver class name (only for a non-XA datasource)
			</li>
    <li>
        <b>xaDataSource</b>
				the XA datasource class name (only for a XA datasource)
			</li>
</ul>
<p/>

		To configure the characteristics of the pool:
		<ul>
    <li>
        <b>maxActive</b>
				the maximum number of active connections
			</li>
    <li>
        <b>minIdle</b>
				the minimum number of idle connections
			</li>
    <li>
        <b>maxIdle</b>
				the maximum number of idle connections
			</li>
    <li>
        <b>maxWait</b>
				the maximum number of milliseconds to wait for a connection to
				be
				available, or -1 (the default) to wait indefinitely
			</li>
    <li>
				... see org.apache.commons.dbcp.BasicDataSource setters for more.
			</li>
</ul>
<p/>

		To configure the datasource, individual property sub-elements must be
		used.
		For a non-XA datasource,
		<b>url</b>

		,
		<b>username</b>

		and
		<b>password</b>

		are commonly used. For a XA datasource, the properties are done
		according
		to the JavaBean setters of the datasource, see the
		documentation for
		your
		JDBC driver for more.
	
]]></nxcomponent:builtInDocumentation>
    <nxcomponent:services>
      <item><![CDATA[org.nuxeo.runtime.datasource.PooledDataSourceRegistry]]></item>
    </nxcomponent:services>
    <nxcomponent:isXML><![CDATA[false]]></nxcomponent:isXML>
    <nxcomponent:componentName><![CDATA[org.nuxeo.runtime.datasource]]></nxcomponent:componentName>
    <nxcomponent:componentClass><![CDATA[org.nuxeo.runtime.datasource.DataSourceComponent]]></nxcomponent:componentClass>
  </schema>
</document>
