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(a)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().