JBoss recipe of the day

JBoss AS 4-5-6

Supposing you need to change at runtime the size of your datasource named "CatalogDB", then you can use twiddle command (or modify it manually from the JMX-Console)


$ twiddle.sh set jboss.jca:name=CatalogDB,service=ManagedConnectionPool MaxSize 300						

This sets the Max ConnectionPool size to 300

JBoss AS 7

You can use the Command Line Utility to change dynamically the pool size attributes. For example, the following commands sets the max-pool-size attribute to 32 of the ExampleDS Datasource:

[standalone@localhost:9999 /] /subsystem=datasources/data-source=ExampleDS:write-attribute(name=max-pool-size,value=32)

Related articles available on mastertheboss.com

How to deploy a DataSource in jboss at application level ?

  Do you need to deploy your DataSource along with your Enterpri

JBoss Datasource HA

This tutorial has been updated for the new release of JBoss Appli

JBoss run out of Connections ?

Have you got No ManagedConnections available error message ? well

How to connect to a DataSource from a remote client?

  If you want to connect to your JBoss Connection Pool from a re

WildFly Datasource configuration

A Datasource is a Java Naming and Directory Interface (JNDI) obje

How do I get the list of Datasources available ?

JBOSS AS 4/5 Users You can use either twiddle: $ twiddle.sh que