# Classes that pertain to resource managers

See the javadoc for each class for more information.

Each of these DataSources has two variants. Use the first variant if your application run on JDK 1.5 or lower. Use the second variant (the one whose class name ends with "40") if your application runs on JDK 1.6 or higher.

- org.apache.derby.jdbc.EmbeddedDataSource and org.apache.derby.jdbc.EmbeddedDataSource40

  Implements javax.sql.DataSource interface, which a JNDI server can reference. Typically this is the object that you work with as a `DataSource`.

- org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource and org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40

  Implements javax.sql.ConnectionPoolDataSource. A factory for `PooledConnection` objects.

- org.apache.derby.jdbc.EmbeddedXADataSource and org.apache.derby.jdbc.EmbeddedXADataSource40

  Derby's implementation of a javax.sql.XADataSource.

Parent topic: Using Derby as a J2EE resource manager
Related concepts
Getting a DataSource
Shutting down or creating a database