public class DataSourceDescriptor extends Object
The attributes of a <datasource>
element are:
jdbc/foo
)To configure the characteristics of the pool:
BasicDataSource
setters for more
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.
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceDescriptor.PoolFactory |
Modifier and Type | Field and Description |
---|---|
protected String |
dataSource |
protected String |
driverClasssName |
Element |
element |
protected String |
name |
protected Reference |
poolReference |
Map<String,String> |
properties |
protected String |
xaDataSource |
protected Reference |
xaReference |
Constructor and Description |
---|
DataSourceDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
bindSelf(Context naming) |
String |
getDataSource() |
String |
getDriverClasssName() |
String |
getName() |
String |
getXaDataSource() |
void |
unbindSelf(Context naming) |
protected String xaDataSource
protected String dataSource
protected String driverClasssName
public Map<String,String> properties
protected Reference poolReference
protected Reference xaReference
public DataSourceDescriptor()
public String getXaDataSource()
public String getDataSource()
public String getDriverClasssName()
public void bindSelf(Context naming) throws NamingException
NamingException
public void unbindSelf(Context naming) throws NamingException
NamingException
Copyright © 2015 Nuxeo SA. All rights reserved.