Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-4419

Allow use of datasources when no container is available

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.1
    • Component/s: Core
    • Impact type:
      Deployment change
    • Upgrade notes:
      Hide

      Example contribution for a non-XA datasource:

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

      Example contribution for a XA datasource (see the documentation for the setters of the chosen JDBC XA datasource for the exact properties to use):

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

      Show
      Example contribution for a non-XA datasource: <extension target="org.nuxeo.runtime.datasource" point="datasources"> <datasource name="jdbc/foo" driverClassName="org.apache.derby.jdbc.EmbeddedDriver" maxActive="20" maxIdle="5" maxWait="10000"> <property name="url">jdbc:derby:/home/db;create=true</property> <property name="username">nuxeo</property> <property name="password">nuxeo</property> </datasource> </extension> Example contribution for a XA datasource (see the documentation for the setters of the chosen JDBC XA datasource for the exact properties to use): <extension target="org.nuxeo.runtime.datasource" point="datasources"> <datasource name="jdbc/foo" xaDataSource="org.apache.derby.jdbc.EmbeddedXADataSource" maxActive="20" maxIdle="5" maxWait="10000"> <property name="databaseName">/home/db</property> <property name="createDatabase">create</property> <property name="user">nuxeo</property> <property name="password">nuxeo</property> </datasource> </extension>

      Description

      When no container with a JNDI system is available (for instance when using Nuxeo in a purely embedded setup), we still want to access directories or other datasources.
      To do that we need a Nuxeo-specific configuration system to declare the datasources, as well as a making sure that DatasourceHelper still works.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.