# TransactionCoordinator.addObserver() removal

**URL:** <https://discourse.hibernate.org/t/transactioncoordinator-addobserver-removal/9691>\
**Category:** Hibernate ORM\
**Created:** [June 4, 2024, 5:48pm UTC](https://discourse.hibernate.org/t/transactioncoordinator-addobserver-removal/9691 "2024-06-04T17:48:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snorbi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/snorbi/32/1664_2.png) [@snorbi](https://discourse.hibernate.org/u/snorbi)\
**Post date:** [June 4, 2024, 5:48pm UTC](https://discourse.hibernate.org/t/transactioncoordinator-addobserver-removal/9691/1 "2024-06-04T17:48:15Z")

</div>

I read the following in the javadoc of `TransactionCoordinator#addObserver`:

> Observers are not to be cleared on transaction completion.

Why is it important?  
Why cannot I remove the observer if I need to?  
Thanks.

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [June 4, 2024, 6:04pm UTC](https://discourse.hibernate.org/t/transactioncoordinator-addobserver-removal/9691/2 "2024-06-04T18:04:57Z")

</div>

You can remove an observer if you want. The javadoc just says that there is no automatic clearing happening.
