I\'m trying to create a multithreading server. The problem is that I get the following error: play.exceptions.JPAException: The JPA context is not initialized. JPA Entit
I am guessing your thread is kicked off before Play has a chance to start the JPA Entity Manager.
If your Model class is annotated with @Entity, then the entity manager would have been created and your error would not appear.
So, you have a couple of options. Either,
Personally, I would go with option 2. It is better documented, and play plugins are meant more for extending the framework rather than changing the order of processing.