Datasource created with jta=false and use-ccm=false when using the admin console in EAP 6
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Releases prior to 6.4.0
Issue
- A datasource created by the EAP web based admin console, has
jtaanduse-ccmautomatically set tofalse
<datasource jta="false" ... use-ccm="false" ...>
- These values are inconsistent with the expected defaults as documented in
docs/schema/jboss-as-datasources_1_*.xsd
Resolution
One of the following may be used to resolve the issue
- Disable the datasource, set both properties to true, restart the server1 and re-enable the datasource
- Create datasources using the CLI console
- Stop the server, remove the two properties from the datasource entry in
standalone*.xmlordomain.xml(allowing them to retain their default value oftrue) then restart the server
This issue is resolved in EAP 6.4.0 and later as part of This content is not included.BZ-1144083
1
Re-enabling a datasource without a restart may result in a failure
- See IllegalStateException, StartException, JBAS010433, JBAS010432 ...
- See Re-enabling a disabled datasource results in an ERROR report in the log in EAP 6.4.0
Root Cause
- This is a known issue Content from issues.jboss.org is not included.HAL-397 that impacts versions of EAP prior to 6.4
- Most datasource pools should use jta='true' and use-ccm='true'
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.