6.5 Configure PostgreSQL as Resource Manager
To use PostgreSQL as resource manager for XA transactions, you must enable prepared transactions and session affinity.
Skip this section if you don't want to use PostgreSQL as a resource manager.
By default, the value of
max_prepared_transactions is set to 0 and prepared transactions are disabled. If you do not enable prepared transactions for PostgreSQL, you will receive the following error message when you start an XA transaction.Exception: org.postgresql.util.PSQLException: ERROR: prepared transactions are disabledParent topic: Develop Applications with XA