Execution Order of @PostConstruct
问题 I have 2 singletons in my JEE application that I want to initialize at start up. Something like this: @Singleton @Startup public class ServiceB { @EJB private ServiceA a; @PostConstruct private void init() { .... } } ServiceB doesn't really need ServiceA, I just added the dependency to make sure that ServiceA is fully initialized (read: @PostConstruct-method finished) before ServiceB's init() -Method starts. But it doesn't wait. ServiceB actually starts before ServiceA. Is there any way to