Well, in our case Hibernate itself is bootstrapped perfectly in a single thread. However right after this initialization, we have several threads starting to use this fresh Hibernate instance in parallel within a JTA transaction environment. So many threads are requesting the JtaPlatform service for the very first time (it was not required/used/initialized during bootstrapping) leading to NullPointerExceptions due to only partly initialized service instances. Our workaround was to simply request a JtaPlaform service instance once right after Hibernate initialization still in the single bootstrapping thread. That way all following threads receive this fully initialized JtaPlatform instance and things work smoothly. Does that answer your question? |