5 Replies Latest reply: May 1, 2012 11:07 AM by Peter Johnson RSS

"Newbie Question" - Managed Connections

n2jaz Newbie

For the most part 99% of the time the application runs fine. I sometimes get managed connections errors. I've updated my ds.xml file with the following (testing purposes)

 

<min-pool-size>20</min-pool-size>
<max-pool-size>50</max-pool-size>

 

But when I look at the Administration Console or JMX Console it still shows min 0 & max 10. (yes I restarted the JBoss process)

 

What am I missing?

  • 1. Re: "Newbie Question" - Managed Connections
    Peter Johnson Master

    My guess is that you are not looking at the right place in the jmx console.

     

    Which file did you make these changes in?

     

    Which mbean are you looking at in the jmx console (full mbean name, please).

     

    Finally, what version of JBoss AS.

  • 2. Re: "Newbie Question" - Managed Connections
    n2jaz Newbie

    Thanks for your response!

     

    File (Sabrix Tax Application): sabrix-oracle-ds.xml

    JMX-CONSOLE: jboss.jca --> name=jdbc/TaxDataSource,service=ManagedConnectionPool (MinSize=0 MaxSize=10)

    Version: 5.1

  • 3. Re: "Newbie Question" - Managed Connections
    Peter Johnson Master

    I should have also asked for the *-ds.xml file contents...

  • 4. Re: "Newbie Question" - Managed Connections
    n2jaz Newbie

    <datasources>

        <local-tx-datasource>

            <jndi-name>jdbc/TaxDataSource</jndi-name>

            <connection-url>jdbc:oracle:thin:@localhost:1521:DBNAME</connection-url>

            <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

            <user-name>xxxxx</user-name>

            <password>xxxxx</password>

            <min-pool-size>20</min-pool-size>

            <max-pool-size>50</max-pool-size>

            <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->

            <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

            <!-- Checks the Oracle error codes and messages for fatal errors -->

            <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>

            <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered

            <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>

            -->

            <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

            <metadata>

                <type-mapping>Oracle9i</type-mapping>

            </metadata>

        </local-tx-datasource>

  • 5. Re: "Newbie Question" - Managed Connections
    Peter Johnson Master

    I deployed your *-ds.xml file and saw the expected min and max values. See attached screen shot. So I'm not sure why you are not seeing the same thing.