[hibernate-dev] Getting notified when session factory is completely set up
Hardy Ferentschik
hardy at hibernate.org
Tue Feb 11 07:47:57 EST 2014
I think if you need to make sure the SessionFactory is fully initialised, you’ll need an observer.
On 11 Jan 2014, at 12:55, Gunnar Morling <gunnar at hibernate.org> wrote:
> No, at least not in the case of DatastoreProvider.
>
> I think it depends on the specific service and when it is requested for the first time. DatastoreProvider is retrieved for the first time while the SF initialization is still in progress (via entity persister -> grid dialect -> datastore provider). At this time the half-constructed factory is passed to StartStoppable#startService().
More information about the hibernate-dev
mailing list