Class UCPDataSourceResource

java.lang.Object
oracle.ucp.jdbc.UCPDataSourceResource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

@ApplicationScoped public class UCPDataSourceResource extends Object implements DataSource
This DataSource wraps a UCP PoolDataSource instance with two objectives:
  • Inject it in the Application Scope (to be referenced by Servlets, EJBs, etc).
  • Disallow multiple instances of the pool being created when the resource is bound in JNDI (PoolDataSource's Referenceable implementation creates that undesired side-effect).