Version 2
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- The Derby embedded database JCA connection factory config
    $Id: derby-ds.xml,v 2004/11/03 13:28:39 loubyansky Exp $ -->
          <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
          <!-- Datasources are not available outside the virtual machine -->
          <!-- for in-process persistent db, saved when jboss stops. The
          org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db shutdown -->
          <!-- The driver class -->
          <!-- The login and password -->
          <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
          <!-- The maximum connections in a pool/sub-pool -->
          <!-- The time before an unused connection is destroyed -->
          <!-- Whether to check all statements are closed when the connection is returned to the pool,
               this is a debugging feature that should be turned off in production -->
          <!-- This mbean can be used when using in process persistent derby -->
       <mbean code="org.jboss.jdbc.DerbyDatabase" name="jboss:service=Derby"></mbean>