Chapter 3 Integrating With JBoss 4.0.2 : Container-Managed Transactions (XA)

Container-Managed Transactions (XA)
The steps we have outlined in this chapter assume that the MDB uses container-managed transactions. This section highlights configuration details related to this feature.
Developer
The MDB developer did not code transaction logic into the MDB, and specified this fact to application server in the file ejb-jar.xml. Namely, the <transaction-type> attribute has the value Container. This fact has two consequences during deployment:
XA Connection
If your application indeed requires container-managed XA transactions, then this interpretation is correct, and no changes are required.
            <xa-connection> false </xa-connection>
 
XA Connection Factory
If your application indeed requires container-managed XA transactions, then this interpretation is correct, and no changes are required.
However, if your application does not use transactions at all, you can instead create connection factories that do not support XA:
      > create factory QueueConnectionFactory queue
      > create factory TopicConnectionFactory topic