What is the use of wrap-xa-resource attribute of xa-datasource?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6

Issue

  • When do I need to use the wrap-xa-resource attribute of a xa-data-source?
  • Do I need to set the value of wrap-xa-resource as true or false?

Resolution

The wrap-xa-resource attribute of xa-datasource set to true means that the JCA container (IronJacamar) provides information to the transaction manager (Narayana) about the underlying system. For example : the database. In case of errors the transaction manager is then able to print out this information, product name, product version and JNDI name of the failing resource. Setting it to false will provide a small performance increase, but it will loose all the useful information in case of errors.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.