Setting JDBC Datasource properties in WildFly/JBoss (IronJacamar)

{question}

How to set up JDBC Datasource properties in WildFly/JBoss (IronJacamar)

{question}

{answer}

While this is outside the scope of NuoDB, it is useful when configuring connections from WildFly/JBoss.

In WildFly, datasources are configured through the datasource subsystem.

https://docs.jboss.org/author/display/WFLY10/DataSource+configuration

This subsystem is governed by the IronJacamar project, which lists the available properties at

http://www.ironjacamar.org/doc/userguide/1.1/en-US/html_single/index.html#deployingds_descriptor

The important one is connection-property, which allows arbitrary property name/value pairs to be passed to the data source. The name comes from the name attribute and the value comes from the element content, e.g.

<connection-property name="maxStatements">1000</connection-property>

{answer}

Have more questions? Submit a request

Comments