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 |
---|---|
Element |
element |
Map<String,String> |
properties |
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) |
public String getName()
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.