2.11. The data source provider

The following topics are covered:

2.11.1. Configuration

The DataSourceProvider is a service used to give access to a data source in an uniform manner in order to be able to support data sources that are managed by the application server.

getDataSource(String dataSourceName)Tries to get the data source from a JNDI lookup. If it can be found and the data source is defined as managed, the service will wrap the original DataSource instance in a new DataSource instance that is aware of its managed state otherwise it will return the original DataSource instance.
isManaged(String dataSourceName)Indicates whether or not the given data source is managed.

Copyright ©2012. All rights reserved. eXo Platform SAS