<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE j2c-customizations [

     <!ELEMENT j2c-customizations ( server-wide-bucket-properties?, 
                                    bucket-properties*,
                                    cm-properties?,
                                    security-properties*,
                                    advanced-connection-properties*
                                  )>

     <!ELEMENT server-wide-bucket-properties ( maxUnSharedBuckets?,
                                               maxUserDataBuckets?,
                                               maxFreePoolBuckets?,
                                               maxSharedBuckets?,
                                               maxFreePoolHashSize?,
                                               surgeTime?,
                                               surgeConnections?
                                             )>
     <!ATTLIST server-wide-bucket-properties description CDATA #IMPLIED>

     <!ELEMENT bucket-properties ( maxUnSharedBuckets?,
                                   maxUserDataBuckets?,
                                   maxFreePoolBuckets?,
                                   maxSharedBuckets?,
                                   maxFreePoolHashSize?,
                                   surgeTime?,
                                   surgeConnections?
                                 )>
     <!ATTLIST bucket-properties connectionFactoryJNDIName CDATA #REQUIRED>

     <!ELEMENT maxUnSharedBuckets (#PCDATA)>
     <!ELEMENT maxUserDataBuckets (#PCDATA)>
     <!ELEMENT maxFreePoolBuckets (#PCDATA)>
     <!ELEMENT maxSharedBuckets (#PCDATA)>
     <!ELEMENT maxFreePoolHashSize (#PCDATA)>
     <!ELEMENT surgeTime (#PCDATA)>
     <!ELEMENT surgeConnections (#PCDATA)>


     <!ELEMENT cm-properties ( manageCachedHandles?,
                               logMissingTranContext?
                             )>

     <!ELEMENT manageCachedHandles (#PCDATA)>
     <!ELEMENT logMissingTranContext (#PCDATA)>

     <!ELEMENT security-properties ( secureMode? )>
     <!ATTLIST security-properties connectionFactoryJNDIName CDATA #REQUIRED>
     <!ELEMENT secureMode (#PCDATA)>

     <!ELEMENT advanced-connection-properties ( testConnection?,
                                                testConnectionRetryInterval?
                                              )>

     <!ATTLIST advanced-connection-properties connectionFactoryJNDIName CDATA #REQUIRED>

     <!ELEMENT testConnection (#PCDATA)>
     <!ELEMENT testConnectionRetryInterval (#PCDATA)>

     ]>

<!-- ======================================================================================== -->

<j2c-customizations>

<!-- The server-wide-bucket-properties are in a comment block.  Uncomment to use --> 
<!-- Remove the properties that are not being used. -->
<!--
  <server-wide-bucket-properties>
    <maxUnSharedBuckets>1</maxUnSharedBuckets>
    <maxUserDataBuckets>1</maxUserDataBuckets>
    <maxFreePoolBuckets>1</maxFreePoolBuckets>
    <maxSharedBuckets>1</maxSharedBuckets>
    <maxFreePoolHashSize>10</maxFreePoolHashSize>
    <surgeTime>10</surgeTime>
    <surgeConnections>10</surgeConnections>
  </server-wide-bucket-properties>  
-->

<!-- The bucket-properties are in a comment block.  Uncomment to use --> 
<!-- Remove the properties that are not being used. -->
<!-- sample of CF-specific bucket properties:
  <bucket-properties connectionFactoryJNDIName="eis/myConnection">
    <maxUnSharedBuckets>1</maxUnSharedBuckets>
    <maxUserDataBuckets>1</maxUserDataBuckets>
    <maxFreePoolBuckets>1</maxFreePoolBuckets>
    <maxSharedBuckets>1</maxSharedBuckets>
    <maxFreePoolHashSize>10</maxFreePoolHashSize>
    <surgeTime>10</surgeTime>
    <surgeConnections>10</surgeConnections>
  </bucket-properties>  
-->


<!-- The cm-properties are in a comment block.  Uncomment to use --> 
<!--
  <cm-properties>
    <manageCachedHandles>false</manageCachedHandles>
    <logMissingTranContext>true</logMissingTranContext>
  </cm-properties>
-->

<!-- The security-properties are in a comment block.  Uncomment to use -->
<!--
  <security-properties connectionFactoryJNDIName="myDataSource">
    <secureMode>false</secureMode>
  </security-properties>
-->

<!-- The advanced-connection-properties are in a comment block.  Uncomment to use --> 
<!--
<advanced-connection-properties connectionFactoryJNDIName="jdbc/markSection">
  <testConnection>true</testConnection>
  <testConnectionRetryInterval>5</testConnectionRetryInterval>
</advanced-connection-properties>
-->

</j2c-customizations>