Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.datasource
Class DataSourceDescriptor

java.lang.Object
  extended by org.nuxeo.runtime.datasource.DataSourceDescriptor

public class DataSourceDescriptor
extends java.lang.Object

The descriptor for a Nuxeo-defined datasource.

The attributes of a <datasource> element are:

To configure the characteristics of the pool:

To configure the datasource connections, individual <property> sub-elements are used.

For a non-XA datasource, you must specify at least a url:

   <property name="url">jdbc:derby:foo/bar</property>
   <property name="username">nuxeo</property>
   <property name="password">nuxeo</property>
 
For a XA datasource, see the documentation for your JDBC driver.


Field Summary
 org.w3c.dom.Element element
           
 java.lang.String name
           
static java.lang.String PROP_PREFIX
          How we store XA props in the Reference.
 java.util.Map<java.lang.String,java.lang.String> properties
           
 
Constructor Summary
DataSourceDescriptor()
           
 
Method Summary
 javax.naming.Reference getReference()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

element

public org.w3c.dom.Element element

properties

public java.util.Map<java.lang.String,java.lang.String> properties

PROP_PREFIX

public static final java.lang.String PROP_PREFIX
How we store XA props in the Reference.

See Also:
Constant Field Values
Constructor Detail

DataSourceDescriptor

public DataSourceDescriptor()
Method Detail

getReference

public javax.naming.Reference getReference()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.