-
1. Re: "Newbie Question" - Managed Connections
peterj May 1, 2012 10:11 AM (in response to n2jaz)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 May 1, 2012 10:19 AM (in response to peterj)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
peterj May 1, 2012 10:23 AM (in response to n2jaz)I should have also asked for the *-ds.xml file contents...
-
4. Re: "Newbie Question" - Managed Connections
n2jaz May 1, 2012 10:25 AM (in response to peterj)<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
peterj May 1, 2012 11:07 AM (in response to n2jaz)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.
-
jdbc.png 81.9 KB
-