Global object appears not to load in Play framework

· 64 Words

I was scratching my head for a bit over this one. Using Play Framework v 2.1.0 (Scala) in development mode I was defining my global object as per the Scala Global documentation. But it wasn’t triggering (and, I thought, wasn’t being registered).

The answer is that the app only loads on the first request. You must trigger a request to get things going. Tada.

Read more