A DataSource object has a set of properties that identify and describe the real world data source that it represents. These properties include information such as the location of the database server, the name of the database, the network protocol to use to communicate with the server, and so on.
You create the data source using the Application Server Admin Console, following this procedure:
Expand the Resources node.
Expand the JDBC node.
Select the JDBC Resources node.
Click the New... button.
Type jdbc/BookDB in the JNDI Name field.
Choose DerbyPool for the Pool Name.