assemblits / eru

The open JavaFX SCADA
GNU General Public License v3.0
14 stars 9 forks source link

Database initialization is delaying the App start up #21

Closed marl0rd closed 7 years ago

marl0rd commented 7 years ago

Database initialization is been working in the App constructor and not in the Preloader service thread "ProjectLoaderService", this is causing the Preloader window is blocked.

marl0rd commented 7 years ago

This is due to the extraction of the singleton: databaseIdentifier = new DatabaseIdentifier(JpaUtil.getGlobalEntityManager()); In the App constructor.

marl0rd commented 7 years ago

Moving the first call of JPAUtil to the preloader.