In Jboss AS the datasources can be configured in the standalone.xml file. The connection pool can be set in the subsystem for datasources.

<subsystem xmlns="urn:jboss:domain:datasources:1.0">
    <datasources>
        <datasource jta="true" jndi-name="java:jboss/datasources/mydatabase"
        	pool-name="myDatabasePool" enabled="true" use-java-context="true"
        	use-ccm="true">
            <connection-url>jdbc:oracle:thin:@192.168.10.100:1521:orcl</connection-url>
            <driver>oracle</driver>
            <pool>
                <min-pool-size>1</min-pool-size>
                <max-pool-size>5</max-pool-size>
                <prefill>true</prefill>
            </pool>
            <security>
                <user-name>user</user-name>
                <password>password</password>
            </security>
        </datasource>
    </datasources>
</subsystem>