use of org.springframework.jdbc.datasource.lookup.DataSourceLookup in project cuba by cuba-platform.
the class DataSourceProvider method getJndiDataSource.
protected DataSource getJndiDataSource(String jndiName) {
Preconditions.checkNotNull(jndiName, "Jndi name is null");
DataSourceLookup lookup = new JndiDataSourceLookup();
return new ProxyDataSource(lookup.getDataSource(jndiName));
}
Aggregations