2.7. Transaction Termination


How long a Control can access a terminated transaction is implementation-specific. In JBoss Transaction Service, if you are using the Current pseudo-object, all information about a transaction is destroyed when it terminates. For this reason, you should not use any Control references to the transaction after issuing the commit or rollback operation.
However, if you terminate the transaction explicitly, using the Terminator interface, information about the transaction is only removed when all the outstanding references to it have been destroyed. You can signal that the transaction information is no longer required, by using the destroyControl method of the OTS class, which is found in the com.arjuna.CosTransactions package. After the program indicates that the transaction information is no longer required, you should not use any Control references to the transaction.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top