gbadner at redhat.com
Tue Aug 20 16:43:19 EDT 2019
In 4.2 and 4.3, it was possible to add a ConnectionObserver
Starting in 5.0, LogicalConnectionImplementor was moved
to org.hibernate.resource.jdbc.spi, and it's no longer possible to add a
For now, I think it's OK to change JdbcObserverImpl#observers from a
private final transient ConnectionObserver observer;
Also, I'm fine with ConnectionObserver being deprecated, and later removed.
On Tue, Aug 20, 2019 at 10:55 AM Sanne Grinovero <sanne at hibernate.org>
> While refactoring some related optimisations, I noticed there's
> currently no way to register a custom ConnectionObserver.
> There seems to be only one implementation, which is registered by default:
> Some questions:
> # Is this expected?
> # Should we deprecate the SPI so to make this more explict in the
> future, and possibly eventually discuss removing it?
> # Since I'm working on performance optimisations, may I take advantage
> currently of the fact that there's only one registered? We're
> currently iterating "the list of obeservers"...
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
More information about the hibernate-dev